How do i insert spaces between lines in the outpout screen? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i insert spaces between lines in the outpout screen?

If i wanted to read 3 or more sentences like if i were reading them from book and not in a big long line... ie: He learned a few basic things - This is awesome And she said: - Yes it is.

19th Feb 2017, 7:27 PM
Marco
Marco - avatar
1 Answer
+ 1
use <<endl; at the end of every line cout<< "hello world"<<endl; or at the end of the string put \n for a line break.
19th Feb 2017, 7:38 PM
Mario L.
Mario L. - avatar