In Python:
Problem 4. 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
// If any doubt please comment
Get Answers For Free
Most questions answered within 1 hours.