AC

小狐狸的X  •  1年前


include

include

using namespace std; int main(void){

//freopen("1120.in","r",stdin);
//freopen("1120.out","w",stdout);
int a,b=0;
scanf("%d",&a);
while(a){
	b+=a%10;
	a/=10;
}
printf("%d",b);
return 0;

}


评论:

请先登录,才能进行评论