How to answer this question really depends on the programming language.
In Delphi for example, you could have two text boxes, one for person_name and one for person_age:
person_name := textbox1.text;
person_age := StrToInt(textbox2.text);
In Delphi:
person_name=input('user input into person_name')
person_age=int(input('user input into person_age'))