Why did "cin" function didn't lets you write an input on the output | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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 Antwort
+ 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