I'm hoping to find a way to use a while loop (not a for loop) to get the individual digits of an integer put in through command line. Right now, I have it hard coded for how to get individual digits if a four digit integer is entered, but if I enter a five digit number it obviously won't work. I'm thinking a while loop should be able to fix that but I'm not sure how...
Here is the code I have so far