In my program the user must enter a three-digit number. I need to set each of the three digits as a separate variable of type int, but I can only set the three-digit number as a single variable. Right now, my temporary solution is to tell the user to give each digit seperately, but I'd like to be able to take the three-digit number and dissect the numbers to create three one-digit numbers held in three different int variables.
Can anyone help?
-Thanks,
Jeremy