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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started