0
seriously i cant get loops down and its stupid mistakes
int main() { int x {cout << "5+5" << endl;} cin >> x; if(x==10){ cout << "correct" << endl; } else{cout << "wrong/ndipshit" << endl;} return 0; }
4 Respostas
+ 5
you are getting there jonathin. dont be disheartened. mistakes are not that bad. they are a good teaching tool. just keep on trying you will get there.
+ 1
dont put {} in the first cout
+ 1
#include <iostream>
using namespace std;
int main() {
int x;
cout << "5+5" << endl;
cin >> x;
if (x == 10) {
cout << "correct" << endl;
}
else {
cout << "wrong/ndipshit" << endl;
}
return 0;
}
0
how come?