0

Whats wrong?

What is wrong here? #include <iostream> using namespace std; int main() { int x; cout<<"Enter your age:"; cin>>x; cout>>"You are old:"<<x<<"Years"<<endl; return 0; } It says compilation error. What is wrong?

26th Nov 2016, 8:39 PM
MysticMM
MysticMM - avatar
2 Respuestas
+ 2
in the cout statement instead of << you have used >>
26th Nov 2016, 8:49 PM
Rishabh Agrawal
Rishabh Agrawal - avatar
0
Oh, Im really dumb xD. I messed up the easyest think, thank you!
26th Nov 2016, 9:55 PM
MysticMM
MysticMM - avatar