How to leave spaces in C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
17th Sep 2023, 10:52 AM
P A Arrchith Iyer
P A Arrchith Iyer - avatar
4 Answers
+ 6
You means line break🤔 You have two option i.e, Use cout<<endl; Or cout<<"\n";
17th Sep 2023, 10:57 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 4
"\n" creates a new line. endl also creates a new line.
17th Sep 2023, 10:57 AM
Lisa
Lisa - avatar
+ 3
P A Arrchith Iyer you don't need to use both, count<<endl; Or count<<"\n" You can use either one of these
17th Sep 2023, 11:39 AM
JAY
JAY - avatar
+ 2
Thank you
17th Sep 2023, 11:00 AM
P A Arrchith Iyer
P A Arrchith Iyer - avatar