0

What is the use of cin command

13th Jul 2016, 3:33 PM
chaitanya
7 Respostas
+ 3
#include <iostream> // add library to use cin cout commands using namespace std; int main() { int age; // define variable cin >> age; // ask user to input an integer value and assign it to age variable cout<<"you are " << age << " years old"; // prints the output }
13th Jul 2016, 4:07 PM
Jetset Willy
Jetset Willy - avatar
+ 1
the cin command allows the user to enter a number or any variable
13th Jul 2016, 6:53 PM
OMKAR
OMKAR - avatar
+ 1
Through cin command, we can extract data from the user.
14th Jul 2016, 3:37 AM
Bhavuk
0
get input from user(console) e.g., int a; cin>>a; cout<<"You entered: "<<a; // I have ignored the basic lines and have written just the logic .. ask if you want the whole
13th Jul 2016, 3:55 PM
Vedant Patadia
Vedant Patadia - avatar
0
the cin command is same as the printf command in c language which prints the values on the screen
17th Jul 2016, 12:00 PM
Akshat Jain
Akshat Jain - avatar
0
cin command is used to scan any value in c++
17th Jul 2016, 4:00 PM
krishna desai
0
no hole
5th Aug 2016, 12:53 PM
Tammie Younger
Tammie Younger - avatar