CJCoding With Joseph
15per day

Age Variable

Using an integer, create a variable to hold your age (use any age value you'd like, such as 25). Then use cout to display the sentence:

I am [age] years old.

Do not type the age number directly in the cout statement. Instead, use the integer variable you created so it prints the value stored inside it.

Expected Output:

I am 25 years old.
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.