int age;
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println("How old are you?");
while (!Serial.available());
age = Serial.parseInt();
Serial.print("You are ");
Serial.print(age);
Serial.println(" years old.");
Serial.read();
}