第40525题 判断题
如下 Python 代码如果输入大于 0 的整数,则可以求 1 到 N 之和。
N = int(input("请输入正整数:"))
tot = 0

while N > 0:
    tot += N
    N += -1
print(tot)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析