0
How do I display different outputs on separate lines?
https://sololearn.com/compiler-playground/cSjXQXQzL18H/?ref=app
5 Antworten
+ 8
Machete Vhuthuhawe Irvin ,
use an additional `<<` just before `endl` in both lines.
+ 3
code : cout << "line1\nline2"
output : line1
line2
+ 2
Lothar Thanks
0
use '\n' or endl to display output on separate lines