Write a Python program to print three numbers in Descending Order.

 a=int(input("Enter first number:"))

b=int(input("Enter second number:"))

c=int(input("Enter third number:"))


max=mid=min = None


if a>b and a>c:

    if b>c:

        max,mid,min=a,b,c

    else:

        max,mid,min=a,c,b


elif b>a and c>a:

    if b>c:

        max,mid,min=b,c,a

    else:

        max,mid,min=c,b,a



else:

    if c>a:

        max,mid,min=c,a,b

    else:

        max,mid,min=b,a,c


print("The Descending order of three no. is:", max,mid,min)


Comments

Popular posts from this blog

Data Mining || Supervised vs. Unsupervised Techniques || Dimensionality Reduction || Partitioning Methods

What does one mean by exothermic and endothermic reactions? Give examples.

Vectors important questions of physics || Important question of PHYSICS || Important question of Basic Mathematics || MOTION IN A PLANE || Physics||

2.0 gram of a metal burst in oxygen give 3.2 gram of its oxide. 1.42 gram of the same metal heat in steam give 2.27 gram of its oxide which toys shown by this data?

Kinematics Important Questions Of Physics