About Me
Easyjava
Read a name and an age, then print two sentences.
Input: two lines — line 1 is the name, line 2 is the age (a whole number).
Output: two lines:
My name is <name>.
I am <age> years old.Example 1
Input
Meera 19
Output
My name is Meera. I am 19 years old.
- The age is a whole number, 1 <= age <= 120.
Hint 1
Read the name line, then read the age line and convert it with Integer.parseInt.
Hint 2
End each printed sentence with a full stop.
Read both lines. The name is used as-is; the age line is converted to an int so it is treated as a number. Then print the two sentences with the exact punctuation shown.