if you need to use modulo and you know the size of input you can do things like this, but it's pretty case specific:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
int number = 15238;
int dig1, dig2, dig3, dig4, dig5;
dig5 = number % 10;
number /= 10;
dig4 = number % 10;
number /= 10;
dig3 = number % 10;
number /= 10;
dig2 = number % 10;
number /= 10;
dig1 = number;