第14601题 判断题
判断执行给定Python代码,当输入n为负整数时输出0的说法是否正确
n = int(input()) # 假设输入为负整数、零和正整数
cnt = 0
while n:
    n -= 1
    cnt += 1
print(cnt)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析