测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A39049. 阅读以下程序,程序输出的结果为?n = 10count = 0while n < 30: if n % 5 == 1 or n % 3 == 0: count += 1 n += 1print(count)

单选题 中等

题目描述

阅读以下程序,程序输出的结果为?

n = 10

count = 0

while n < 30:

    if n % 5 == 1 or n % 3 == 0:

        count += 1

    n += 1

print(count)

选项(单选)

上一题 下一题