关于将读入的数据分别计算每一位的和
int SumOfNum(int a){ int sum = 0; while (a >= 10) { sum += a % 10; a = a / 10; } sum += a; return sum; }