As a part of my assignment I need to solve a problem in which I have to take space seperated inputs. I have already done my homework and stuck at a point where I have to take space seperated integers when number of integers are not predecided i.e whether there will be 2,5,10 or 15 integers.
I know that it can be done using arrays but in that case you need to predecide the number of integers.
Any help ?