Why did "cin" function didn't lets you write an input on the output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why did "cin" function didn't lets you write an input on the output

int age; Cout<< "your age is"; cin>> "age"

1st Mar 2021, 6:45 PM
Me++
Me++ - avatar
1 Answer
+ 15
Me++ because u have put double quote to it.. "age" & also there is no semicolon at the end Try this -> cin>>age;
1st Mar 2021, 7:18 PM
Saurabh
Saurabh - avatar