。 • 1年前
int main() {
int n, z = 0; scanf("%d", &n); while (n > 0) { z = z + n % 10; n = n / 10; } printf("%d", z); return 0;
}
评论:
请先登录,才能进行评论