0
What am I doing wrong?
It keeps saying "n" not declared in this scope. #include <iostream> using namespace std; int main() { //modify the given statement cout << "C++"; printf("C") /n printf("+") /n printf("+") /n return 0; }
4 Answers
+ 2
You probably meant: \n
And just include it in the string to print so...
printf("C\n"); // Don't forget the semicolon!
+ 1
Put \n not /n inside printf inside the string
+ 1
That's an invalid syntax it's \n & it should be written inside the printf function within the string.
printf("C\n");
& end this with the semicolon.
0
Jeremy
#include <iostream>
using namespace std;
int main() {
//modify the given statement
cout << "C\n+\n+";
}