📜  python代码示例中最大的3个数字

📅  最后修改于: 2022-03-11 14:45:59.657000             🧑  作者: Mango

代码示例1
a=int(input('first number'))
b=int(input('second number'))
c=int(input('third number'))
if a>b:
    if c>a:
        print('c is biggest of three')
    else:
        print('a is biggest of three')
elif b>c:
    print('b is biggest of three')
else:
    print('c is biggest of three')
#output:
#case I
first number:4
second number:5
third number:6
c is biggest of three
#case II
first number:6
second number:5
third number:4
a is biggest of three
#case III
first number:4
second number:6
third number:5
b is biggest of three
#case IV
first number:5
second number:6
third number:4
b is biggest of three