python 求最大数

a=int(input("请输入一个数值"))

b=int(input("请输入第二个值"))

c=int(input ("请输入第三个值"))

 

if a >b:

        max=a 

        if max >c:

            print("max",a)

        else:

            print("max",c)

else:

        max=b

        if max >c:

            print("max",b)

        else:

            print("max",c)

 

posted @ 2018-06-19 05:51  YangM  阅读(3534)  评论(0编辑  收藏  举报