求三个数的最大值的程序:
def maximum(a, b, c) :
if a > b and a > c:
return a
elif b > a and b > c:
return b
else:
return c
a = input("ENTER 1st NUMBER\n")
b = input("ENTER 2nd NUMBER\n")
c = input("ENTER 3rd NUMBER\n")
print(maximum(a, b, c))
当我输入10,11和2时,它给我 2 作为输出。怎么了?
慕容708150
幕布斯6054654
阿晨1998
开心每一天1111
相关分类