โ Back to Printing
Question 6
Multiple Variables
Multiple Variables
Create a string variable with the value "Sarah" and an int variable with the value 22. Use one cout statement with multiple << operators to display: My name is Sarah and I am 22 years old Chain the variables and text together using << operators in the correct order.
Expected Output:
My name is Sarah and I am 22 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.