ac

zhyf  •  17天前


include <bits/stdc++.h>

using namespace std;

int main() {

int n;
scanf("%d", &n);
int m = 0;
while (n > 0) {
	m = m + n % 10;
	n = n / 10;
}
printf("%d", m);
return 0;

}


评论:

请先登录,才能进行评论