第35053题 单选题
一个正整数的所有数位数字相加的结果称为数位和,例如 123 的数位和为 1+2+3=6。下面的 C++ 代码用于计算正整数的数位和,横线处应该填写的代码是?
int N, sum = 0;
cin >> N;
while (N != 0) {
    __________
}
cout << sum;
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析