I have the concept of the code that i'm doing. Which is having the number example:1234 returned as 1 2 3 4 by finding the length of the number and using that length to set as a limit to have the number returned by diving by pow(10,length). My c++ is not that advance as of yet, so i've come to ask for help.
If reading the number to be inspected as a string, as mutexe suggest, you simply may split it by reading it digit by digit from the string. No more computation is needed.
Otherwise when reading it f.e. as an unsigned integer you'll indeed use % and / operators. A really beautiful way may be a simple recursive function. Think about it!