In c++,
endl is the keyword that are used to break the line when we print something on the console.
Without endl :
program:
#include< iostream>
int main()
{
cout<<"Hello World";
cout<<"Hello India";
return 0;
}
Hello WorldHello India
#include< iostream>
int main()
{
cout<<"Hello World"<< endl;
cout<<"Hello India";
return 0;
}
Hello World
Hello India