0

Cout is used to show and cin is used to ...?

2nd Aug 2016, 11:33 AM
Honey honey
Honey honey - avatar
2 Respuestas
+ 1
Take in user input. int age; cout << "Enter your age: "; cin >> age; cout << "You are " << age << " years old";
3rd Aug 2016, 9:53 AM
Cohen Creber
Cohen Creber - avatar
0
If you know C#, "cout" is equivalent to "Console.Write()" and "cin" is equivalent to "Console.ReadLine()". In Python, "cout" is equivalent to "print()" and "cin" is equivalent to "input".
6th Aug 2016, 2:42 PM
Samuel Neo
Samuel Neo - avatar