Check out example codes for "newline in c++". It will help you in understanding the concepts better.

Code Example 1

cout<<"\n";
or
cout<<endl;

Code Example 2

#include<iostream.h>
void main()
{
  cout<<"First Line\n";
  cout<<"Next Line";
}

Learn ReactJs, React Native from akashmittal.com