+ 2

using cout

How to make outputs on different lines using cout

8th Feb 2017, 3:09 PM
Michell Rojas
2 Respuestas
+ 13
cout<<something<<endl; or cout<<something<<"\n";
8th Feb 2017, 4:30 PM
Filip
Filip - avatar
0
and if you want to print some strings, you can put \n with the string where u want to end the line and start a new line eg. cout<<"This is first line.\n"<<"This is second line";
9th Feb 2017, 10:08 PM
sanat kumar Karmacharya
sanat kumar Karmacharya - avatar