Hi. I'm making a program that finds the multiple things about an inputted number.
So say I enter 1221
My program will say that it's 4 digits-> then it says the largest digit is 2 and the smallest is 1. They all work individually (three different while loops) but together they do not work. I think the input is put through the first loop and when it gets to the second it uses the same value that ended the first loop.
How can I make it so that the same original input is used through the beginning of each new while loop?