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

Changing Trends And Career in Physical Education Solutions || Objective Type Questions || Objective Answers Chapter 1 Class 11 Solution || Physical Education ||

Vistas Chapter-2 The Tiger King || Revision Notes Class 12 Board Exams

Kinematics Important Questions Of Physics

IPL 2023 Season Summary || Moments of IPL 2023

Three oxides of lead on analysis were found to contain lead as under:(i) 3.45 g of yellow oxide contains 3.21 g of lead. (ii) 1.195 g of brown oxide contains 1.035 g of lead. (iii) 1.77 g of red oxide contains 1.61 g of lead. Show that these data illustrate law of multiple proportions.