百度网友12300a92011-04-24关注#include<stdio.h>voidmain(){intn,a=0,b=0;scanf("%d",&n);do{a+=n%10;n=n/10;b++;}while(n!=0);printf("各位数字之和%d\n位数%d",a,b);}