Not sure how to explain this the best but I have a variable with 4 int’s in it. Is there a simple way to extract the 4 int’s into 4 seperate var’s?
Example:
The variable contains: 4567
And then the output is:
var1 = 4
var2 = 5
var3 = 6
var4 = 7
2
Answers
You can do this:
Another way can be:
Note that this will fail if number contains less than 4 digits.