# Program to arrange three numbers in ascending order
x,y,z =input("Enter the values of three numbers:").split(",")
x=float(x)
y=float(y)
z=float(z)
a=max(x,y,z)
b=min(x,y,z)
c=(x+y+z)-a-b
print("The entered numbers in ascending order is:",b,c,a)
x,y,z =input("Enter the values of three numbers:").split(",")
x=float(x)
y=float(y)
z=float(z)
a=max(x,y,z)
b=min(x,y,z)
c=(x+y+z)-a-b
print("The entered numbers in ascending order is:",b,c,a)
Comments
Post a Comment