+ 4

How to get integer input deliminated by space ?

How to get integer input, such that after entering a n integer next input must entered beside it separated by blank space. Ex. input<= 4 5 1 2 etc instead 4 5 1 2

30th Jun 2017, 4:12 PM
Afroz D Chowki
Afroz D Chowki - avatar
7 Antworten
+ 2
Which language?? You tagged 3. If you meant just the way the person inputs, you can't change that. It's how code playground takes input, use a different IDE.
30th Jun 2017, 5:04 PM
Rrestoring faith
Rrestoring faith - avatar
30th Jun 2017, 4:22 PM
Jonas Schröter
Jonas Schröter - avatar
30th Jun 2017, 4:34 PM
‎ ‏‏‎Anonymous Guy
0
dont use new line character in cout and use double qoutes with space inside like " "
30th Jun 2017, 4:48 PM
Luv Kumar
Luv Kumar - avatar
0
c++
30th Jun 2017, 5:05 PM
Luv Kumar
Luv Kumar - avatar
0
write cout<<num<<" ";
30th Jun 2017, 5:06 PM
Luv Kumar
Luv Kumar - avatar
0
okk sryy just give input with spaces like first input space and then second and then so on
30th Jun 2017, 5:08 PM
Luv Kumar
Luv Kumar - avatar