C++ New Lines

C++ New Lines


C++ New Line :

You can to insert a new line, you can use the \n character. Because of   cout operator does not insert a line break at the end of the output.

 

Output:

 

Multiple line text: Using \n

Using a single cout statement with as many instances of \n as your program requires will print multiple line of text as shown below.

Output:

Another way to insert a new line : Using  the endl maniputor as shown below:

 Output :