0

This question is probably easily answered im just getting started and I’m stuck

#include <iostream> using namespace std; int main() { //modify the given statement cout << "C/n+/n+"; return 0; } This was my code but it doesn’t work tell me what I’m doing wrong I’m suppose to make it say C + +

25th Nov 2021, 4:55 AM
Tito Vidales
4 Respuestas
+ 6
Use a backslash \ not a forward slash / for the the escape character. '\n' not '/n'
25th Nov 2021, 5:32 AM
ChaoticDawg
ChaoticDawg - avatar
+ 4
You need to use *backslash(' \ ') in the place of slash(' / ') at cout statement. As : #include <iostream> using namespace std; int main() { //modify the given statement cout << "C\n+\n+"; return 0; }
25th Nov 2021, 5:36 AM
DEEPAK KUMAR
DEEPAK KUMAR - avatar
+ 3
Thank you the question been answered
25th Nov 2021, 5:37 AM
Tito Vidales
+ 1
Please always tag the language you're asking about. https://code.sololearn.com/W3uiji9X28C1/?ref=app
25th Nov 2021, 7:10 PM
Simon Sauter
Simon Sauter - avatar