+ 2

Why it doesn't work?!

#include <iostream> using namespace std; int main() { int mark; cin>>mark; cout<<"Please, introduce your grade:"<<mark<<endl; /*Highest grade: 1000 (100.0) Ex.: 869 (8.69) */ if (mark >= 600) { cout << "Congratulations!" << endl; cout << "You passed." << endl; cout << "You are awesome!"<<endl ; if (mark==1000){ cout >> "You are a GENIUS!"<<endl; cout>>"You really deserve a scholarship somewhere abroad or at a very impressive school"; } } else { cout << "You failed." << endl; cout << "Sorry" <<endl; } return 0; }

8th Jul 2017, 9:56 AM
MintyNerdyPoodle
MintyNerdyPoodle - avatar
5 Answers
+ 7
oh wait, I see. you use cout >> 2 times in your code instead of cout <<. just below if(mark == 1000)
8th Jul 2017, 9:59 AM
Karl T.
Karl T. - avatar
+ 4
What does not work exactly?
8th Jul 2017, 9:58 AM
Karl T.
Karl T. - avatar
+ 2
your cout syntax is wrong just below if(mark==1000) check that
8th Jul 2017, 10:03 AM
vaibhav
+ 1
Thanks, Karl. T and Vaibhav! I was only a little, little mistake...
8th Jul 2017, 10:26 AM
MintyNerdyPoodle
MintyNerdyPoodle - avatar
+ 1
cout<< cout<<
13th Jul 2017, 10:03 AM
pravin kumar
pravin kumar - avatar