#include<stdio.h>
void main()
{
int num,g,s,b,q,w;
printf("请输入一个不大于五位数的数:");
scanf("%d",&num);
w=num/10000;
num=num%10000;
q=num/1000;
num%=1000;
b=num/100;
num%=100;
s=num/10;
g=num%10;
if(w!=0)
printf("是一个五位数,个位=%d,十位=%d,百位=%d,千位=%d,万位=%d\n",g,s,b,q,w);
else if(q!=0)
printf("是一个四位数,个位=%d,十位=%d,百位=%d,千位=%d\n",g,s,b,q);
else if(b!=0)
printf("是一个三位数,个位=%d,十位=%d,百位=%d\n",g,s,b);
else if(s!=0)
printf("是一个二位数,个位=%d,十位=%d\n",g,s);
else
printf("是一位数,个位=%d\n",g);
}