You can either write multiple instruction cin ; So you would have to press enter at each entry of integer , or you can use cin >> >> >> ; A single intruction , by you would have to enter all integers separated by a space before pressing Enter |
cin>>x>>y
and cin>>x; cin>>y;
at all. Both values can be entered by pressing enter after each or on single line in all cases.
|
|