0
Can someone check whats wrong with my code
4 Answers
+ 3
//heres your code without the errors
#include <iostream>
using namespace std;
int main()
{
int myVariable=10;
cout<<"myVariable\n\nHello world";
return 1;
}
you wrote "\n" without quotes and prints inside the code
0
#include <iostream>
using namespace std;
int main()
{
int myVariable=10;
cout<<myVariable<<endl;
cout<<"hello world";
return 0;
}
0
You need to put the escaped newlines inside of the string.
You also have the word "prints" that shouldn't be there.
0
Thnx