> ## Content Index
> Fetch the complete content index at: https://developerinsider.co/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to break a output line in C++
- URL: https://developerinsider.co/how-to-break-a-output-line-in-cpp/
- Published: 2016-06-02T15:27:00.000Z
- Updated: 2018-03-29T17:00:50.000Z
- Author: Anit Kumar
- Tags: Primary, C++

The cout operator does not insert a line break at the end of the output.  
One way to print two lines is to use the `endl` manipulator, which will put in a line break.  
**For examle:**

```
#include<iostream.h>
using namespace std;
int main()
{
     cout<<"Hello world"<<endl;
     cout<<"I am programmer";
     return 0;
}

```

**Output:**

```
Hello world
I am programmer

```

The new line character `\n` can be used as an alternative to endl.  
The backslash`(\)` is called an escape character and indicates a **special** character.

**For example:**

```
{
    cout<<"Hello world\n";
    cout<<"I am programmer";
    return 0;
}

```

**Output:**

```
Hello world
I am programmer

```

Using a single cout statement with as many instances of \\n as your program requuires will print out multiple lines of text.

```
{
    cout<<"Hello\n world\n I\n am\n programmer";
    return 0;
}

```

**Output:**

```
Hello
world
I
am
programmer

```