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 Antworten
+ 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