#include <stdio.h>
int main()
{
int number = 152;
int a, b, c;
/*个位数字*/
a = number % 10;
/*十位数字*/
b = number / 10 % 10; //b = number % 100 / 10;两种都可
/*百位数字*/
c = number / 100;
//输出
printf("152 = %d + %d*10 + %d*100", a, b, c);
return 0;
}