I have a string which contains numbers of different lengths separated by a space
e.g. "92 34 556 1 23 990"
What would be the best way to get each number in turn and put those in an array?
So in this case, I would get
number(0) = 92
number(1) = 34
e.t.c
Dont worry about making a checker to check for invalid inputs such as letters or extra spaces, but if you can do that would be awesome :')
e.g. "92 34 556 1 23 990"
What would be the best way to get each number in turn and put those in an array?
So in this case, I would get
number(0) = 92
number(1) = 34
e.t.c
Dont worry about making a checker to check for invalid inputs such as letters or extra spaces, but if you can do that would be awesome :')