+ 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; }
5 Respostas
+ 7
oh wait, I see. you use cout >> 2 times in your code instead of cout <<. just below if(mark == 1000)
+ 4
What does not work exactly?
+ 2
your cout syntax is wrong
just below if(mark==1000)
check that
+ 1
Thanks, Karl. T and Vaibhav!
I was only a little, little mistake...
+ 1
cout<<
cout<<