Input / Output in C++ : Part 3
Taking Input from the Console
Cin
To take input from the user via the console, we use the cin statement.
cin is a predefined variable that reads data from the keyboard with the extraction operator (>>).
Example1:
int x;
cin >> x; // Get user input f...
lubnafathima.hashnode.dev3 min read