Question: Write a program [call it minmax.py] that accepts three integers in the range [0-100] as input from the user. Your program should then determine and

 Write a program [call it minmax.py] that accepts three integers in the range [0-100] as input from the user. Your program should then determine and print the smallest and largest integers in the values entered by the user using comparison operators *not* using predefined min or max Python functions.

For instance:

If the user input is: 36 5 99 your program should give as output: min = 5 max = 99

If the user input is: 50 25 0 your program should give as output: min = 0 max = 50

An extension for a *bonus* of 3 points: Display the output as [min mid max] as well,

If the user input is: 36 5 99 your program should give as output: min = 5 mid = 36 max = 99

If the user input is: 50 25 0 your program should give as output: min = 0 mid = 25 max = 50




Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!