I am having trouble figuring out how to separate each digit in an integer number. Basically, I have to ask the user what the base number is, and then ask them for two integer numbers. Now, I have the task of checking to make sure each digit in the two integers is smaller than the base number (I have no idea how to do this!).
An example would be something like this:
Enter a base: 3 Enter your first number: 00120 Enter your second number: 11230
I would have to check each digit in the first and second number. Where the first number would be valid because all digits are smaller than 3, and the second number would be invalid because it has a 3 in it which is not smaller than the base.
I've spent multiple hours trying to figure this out on my own and have had no luck.