0

user input multiple time throughout the program.

#include<iostream> using namespace std; int main() { int a,b; cout<<"Please enter a number"<<endl; cin>>a; cout<<"Enter another number \n"; cin>>b; cout << a << "" " << b; return 0; } i dont understand cout << a << " "<< b; ???

16th Dec 2017, 5:59 PM
rajmit kevadiya
rajmit kevadiya - avatar
1 Answer
+ 1
they are going to be spaced, lets say a is 2, b is 4. On the end its going to be: 2 4. There is a space because of the " "
16th Dec 2017, 7:07 PM
Ice
Ice - avatar