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

30th Apr 2018, 1:08 PM
Ronald ErnestoTejada Ríos
Ronald ErnestoTejada Ríos - avatar
1 ответ
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.
30th Apr 2018, 2:53 PM
Elliot
Elliot - avatar