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; }

17th Jan 2017, 4:35 AM
jonathin
4 ответов
+ 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.
17th Jan 2017, 4:59 AM
jay
jay - avatar
+ 1
dont put {} in the first cout
17th Jan 2017, 4:39 AM
Kawaii
Kawaii - avatar
+ 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; }
17th Jan 2017, 4:44 AM
Kawaii
Kawaii - avatar
0
how come?
17th Jan 2017, 4:40 AM
jonathin