0
why we use "endl" in double making program
3 Answers
+ 2
To move next "command output" for example cout output to the next line:
lets say we want to have output like that:
-Whats up?
- Nothing.
So u have to move nothing to the 2nd line to make it looks like conversation. thats why after "cout << "-Whats up?" u have to add " << endl;"
+ 1
endl means EndLine. Like when you press Enter on your keyboard
0
endl used so that the output will not be print in a single line