0
Cout is used to show and cin is used to ...?
2 Réponses
+ 1
Take in user input.
int age;
cout << "Enter your age: ";
cin >> age;
cout << "You are " << age << " years old";
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".