# 输入3个整数分别存储到变量a、b、c中,代码略
if a > b and a > c:
maxn = a
elif b > a and b > c:
maxn = b
elif c > a and c > b:
maxn = c
print("a,b,c的最大值为:", maxn)
执行该程序段,输入下列4组测试数据,无法正确输出a、b、c的最大值的是( )
import random
a=[0,0,0,0,0,0]
for i in range(6):
x = random.randint(1, 10)
if i % 2 == 0:
a[i] = 2 * x + 1
elif x % 2 == 0:
a[i] = x // 2
else:
a[i] = x - 1
执行该程序段后,a[0]~a[5]各元素可能的值是( )