CJCoding With Joseph
15free / daySign inCreate account

Read a person's first name (a single word) and their age (a whole number) from standard input, separated by a space, then print a sentence in the exact form NAME is AGE years old. For input Emma 12 the output must be Emma is 12 years old. with the period at the end. This combines reading two different types — a string and an integer — in one scanf.

Expected output

Emma is 12 years old.

= newline. No newline after the last line.

Hints2 available
Topics
User Input
Auto-input
Emma 12\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)

Your output

Run your code to see the output here...

Test cases

Run your code to see test case results.