Computer Science, asked by arizonaandrew418, 6 months ago

Wap to input 3 numbers from user and print them in ascending order. (Do not use Mathematical function) ​

Answers

Answered by Anonymous
6

Question:-

  • Write a Programme to input 3 numbers from user and print them in ascending order. (Do not use Mathematical function).

Programming Language used:-

  • Python.

Now,

  • Actually, it is quite easy to Print this by using list. sort function.

Now,

→ x = int( input ( "Enter the first Number: :))

→ y = int(input("Enter the second Number:))

→ z = int(input ("Enter the third Number:))

→ list = [ x, y, z ]

→ list.sort( reverse = true )

→ print( list ).

Attachments:
Similar questions