ok lets say that we have the numbers 5,67 and 128 (the numbers are randomly entered)

i want in first loop read the last digit means 5,7,8

in the 2nd pass i want the tenths so will be 0,6,2

in the 3rd will be 0,0,1

and so on.

what i have think until now is this to count the digits

```
do
{
counter++;
diviner=diviner*10;
}while(number/diviner!=0);
counter=counter-1;
diviner=diviner/10;
```

i tried to do

`digit=number%10`

but this is for ones digit only in tenths fails.

i know how i can seperate the digits with modulus and divine

but i dont know how to fix it since the lenght of the number is unknown.