第11805题 单选题
执行给定Python猜数字程序,依次输入15、8、9后,最终输出结果是?
n = 5
while n > 0:
    num = int(input())
    n -= 1
    if num == 10:
        print("猜对了")
        break
    elif num > 10:
        print("太大了")
    else:
        print("太小了")
    print('你还有{}次机会'.format(n))
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析