0% found this document useful (0 votes)
25 views1 page

Input Using Cin

Cin represents standard input in C++ and takes user input from the keyboard, assigning it to declared variables using the extraction operator >>.

Uploaded by

ritubajaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

Input Using Cin

Cin represents standard input in C++ and takes user input from the keyboard, assigning it to declared variables using the extraction operator >>.

Uploaded by

ritubajaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

INPUT USING CIN

Cin is a predefined object that represents the standard input steam in c++. The standard input steam
represent the keyboard. The general format is

Cin>>variable 1 >>variable 2>>---------->> variable N;

Hence variable 1, variable 2,------,variable N are valid C++ various names that have been already
declared. The operator >> is known as extraction or get from operator. It takes the value from the
keyboard and assign to the variable on its right as shown in figure 2.5 (for the statement cin >> n)

You might also like