0

#include <iostream> using namespace std; int main() { //modify the given statement cout << "C++"; return 0; }

The given program outputs "C++". Change the code to output each character on a new line, resulting in: C + +

5th Nov 2021, 8:44 AM
Eman Mohamed Salem Mohamed
6 Answers
+ 4
The answer is in lesson 3.1 of the C++ course on sololearn. Please don't put code in the heading ā€“ rather put it in a script on playground and link the script here
5th Nov 2021, 8:46 AM
Lisa
Lisa - avatar
+ 3
Please read the lesson carefully: A linebreak is indicated by \n ā€“ not /n. Also the required output has 3 lines
5th Nov 2021, 8:53 AM
Lisa
Lisa - avatar
+ 3
Well you can use \n multiple times you know
5th Nov 2021, 8:54 AM
Dareen Moughrabi
Dareen Moughrabi - avatar
+ 2
Thank you allšŸ’™
5th Nov 2021, 8:56 AM
Eman Mohamed Salem Mohamed
0
i did all the possible solution i can but it's still wrong, the output is correct but it says there's no input. how can i fix this, help ļ½”:ļ¾Ÿ(;Ā“āˆ©`;)ļ¾Ÿ:ļ½”
4th Jul 2022, 9:12 AM
Lei Velarde
Lei Velarde - avatar
- 1
Okay šŸ‘Œ I know it will be :coutĀ«"c++/n"; but it's also false .
5th Nov 2021, 8:51 AM
Eman Mohamed Salem Mohamed