第21543题 单选题
阅读给定的C++循环累加代码,程序的输出结果是?

藏药炮制是国家级非物质文化遗产,老药工连续3天记录药材重量,通过循环累加计算总重量。

#include <iostream>
using namespace std;
int main () {
    int total = 0;
    for (int i = 1; i <= 3; i++) {
        total = total + 10;
    }
    cout << total;
    return 0;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析