//今天学的三位数分解
include”stdio.h”
int main()
{
int a,b,c,x;
int i=1;
while(1)
{
printf(“请输入第%d个三位数;”,i);
printf(“\n”);
scanf(“%d”,&x);
a=x/100;
b=(x%100)/10;
c=x%10;
i++;
printf(“a=%d\n”,a);
printf(“b=%d\n”,b);
printf(“c=%d\n”,c);
}
return 0;
}
“`
收获:
1.理解多位数的分解方法;
2.理解一些运算符的运算;