cin object

cin is an object of the iostream class. It is used to accept input from a keyboard. The c is for character and the in is for input. The extraction operator (>>) is used with the cin object to read inputs. The extraction operator extracts data from the cin object, which has been entered via a keyboard.

syntax

cin >> variable

>> is the extraction operator

variable is a variable