输入三个整数并从小到大排序,用python完成

    科技2025-01-12  10

    a = input(“输入a:”) b = input(“输入b:”) c = input(“输入c:”)

    a = int(a) b = int(b) c = int©

    if a>b: a,b = b,a if a>c: a,c = c,a if b>c: b,c = c,b

    print(“顺序为:%d, %d, %d”%(a, b ,c))

    Processed: 0.023, SQL: 8