โ Back to Printing
Question 8
Mixed Escape Sequences
Mixed Escape Sequences
Use one cout statement with both \n and \t to display the following formatted text: Name: John Age: 30 The colons should be followed by a tab space before the values. The two lines should be separated by a newline character. Your output should have "Name:" tabbed to "John" on the first line, then "Age:" tabbed to "30" on the second line.
Expected Output:
Name: John Age: 30
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.