Mixed Escape Sequences
mediumQuestion 8Use one printf statement with both \n and \t to display the formatted text shown in Expected Output.
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
= newline. No newline after the last line.
Hints2 available
Sign in to use hintsTopics
Printing
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.