0
How do I read more than two inputs in the same line with the exception that they have to be separate by one single space? In C++
Gives me examples using printf or cin
1 Answer
0
you can do this
in C++
cin>>num1>>num2>>num3;
or in C
scanf("%d%d%d",num1,num2,num3);
space can't be use since C ignores it.