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 + +
4 Réponses
+ 6
Use a backslash \ not a forward slash / for the the escape character. '\n' not '/n'
+ 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;
}
+ 3
Thank you the question been answered
+ 1
Please always tag the language you're asking about.
https://code.sololearn.com/W3uiji9X28C1/?ref=app