Possible Duplicate:
Identify the digits in a given number.
I need to print each digit of number without convert it to string. It's possible? For example:
int n = 1234;
int x;
while( ?? ) {
x = ??
printf("%d\n", x);
}
it prints:
1
2
3
4
I have no idea how to do this. Thanks in advance.