Input in C++
The cin object in C++ is used to accept the input from the standard input device i.e., keyboard. it is the instance of the class istream. It is associated with the standard C input stream stdin. The extraction operator(>>) is used along with the object cin for reading inputs. The extraction operator extracts the data from the object cin which is entered using the keyboard.
Below is the C++ program to implement cin object to take input from the user:
Note: Multiple inputs can also be taken using the extraction operators(>>) with cin.
Below is the C++ program to implement multiple inputs from the user: