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
", x);
}
原文:
1
2
3
4
我不知道如何做到这一点。 提前感谢。