โ Back to Printing
Question 2
New Line Character
New Line Character
Use the newline escape sequence \n in one cout statement to display the following text on two separate lines: Hello World The \n character creates a line break, so your output should have "Hello" on the first line and "World" on the second line.
Expected Output:
Hello World
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.