#define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h>
int main()
{int i,ge,shi,bai;printf("输入一个三位数整数:\n");scanf("%d",&i);ge=i%10; //个位shi=i%100/10; //十位bai=i/100; //百位printf("个位:%d,十位:%d,百位:%d\n",ge,shi,bai);printf("个位,十位,百位上的数字之和为:%d\n",ge+shi+bai);
}