can anyone tell me how to make my numbers appear on the same line when I execute in C++?? I included my code that I'm working on | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

can anyone tell me how to make my numbers appear on the same line when I execute in C++?? I included my code that I'm working on

coding help! c++ kerfuffle https://code.sololearn.com/cFm2DA3B7rUQ/?ref=app

6th May 2017, 3:39 AM
‎Brigette Herrick
‎Brigette Herrick - avatar
4 Answers
+ 13
It looks like you're using endl which would cause them to appear on a new line. I think this is what you mean: int (m--), (r++), (e - s); { cout << m << r << 4;
6th May 2017, 3:58 AM
David Hutto
David Hutto - avatar
+ 8
@Dwight, @Calvin, @Ninad Thanks for the help!!
6th May 2017, 1:41 PM
‎Brigette Herrick
‎Brigette Herrick - avatar
+ 2
cout << m, cout << r, cout << 4;
6th May 2017, 4:02 AM
Calviղ
Calviղ - avatar
+ 2
Donot write "enl" at end of cout !! It will simply print on same line. ...
6th May 2017, 4:05 AM
Ninad
Ninad - avatar