Wap to input 3 numbers from user and print them in ascending order. (Do not use Mathematical function)
Answers
Answered by
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