Accepted
代码
#include <stdio.h>
#include <math.h>
int main()
{
int a,b,c,d;
int count = 1;
scanf("%d",&a);
c = a;
printf("N:");
while(c / 10 != 0)
{
count++;
b = c % 10;
printf("%d",b);
c = c / 10;
}
b = c % 10;
printf("%d ",b);
printf("W:%d ",count);
printf("NUM:");
while(a % 10 != 0)
{
d = a / (int)pow(10,(count-1));
printf("%d ",d);
a = a % (int)pow(10,count-1);
count--;
}
return 0;
}