0

Can somebody tell me what's the problem with my code?

So I was tryna make a thing where it checks your number and sees if it's greater than 6 https://code.sololearn.com/cXM5ULYv3277/?ref=app

29th Sep 2020, 3:52 PM
Lugli
Lugli - avatar
3 Answers
+ 2
int main() { int a; int b = 6; cin >> a; if( a>b ) cout << "its greater than 6"; return 0; }
29th Sep 2020, 3:56 PM
Abhay
Abhay - avatar
+ 1
Lugli compare it with yours and check the errors you are getting ,you will find what you were doing wrong one common thing you had wrong was capitalisation of int and cout which are case sensitive ,you can't do something like Int and Count and expect it to run good ,also cout << not cout >>
29th Sep 2020, 4:01 PM
Abhay
Abhay - avatar
0
Thanks abhay but what did I do wrong?
29th Sep 2020, 4:00 PM
Lugli
Lugli - avatar