using cout | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

using cout

How to make outputs on different lines using cout

8th Feb 2017, 3:09 PM
Michell Rojas
2 ответов
+ 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