Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cin c++

cin >> variable;

// sample 1
int x;
cout << "x: ";
cin >> x;
cout << x << endl;

//sample 2
int num;
for (int i = 0; i < 10;  i++){
	cout << "Give a number: ";
    cin >> num;
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #cin
ADD COMMENT
Topic
Name
6+3 =