Question: #4. Program to find median... + - 2 points Write a program which reads 3 distinct integers and prints the middle (median) of the three

#4. Program to find median... + - 2 points Write a program which reads 3 distinct integers and prints the middle (median) of the three numbers when the numbers are in order. For example, if the input is 3 1 2, output should be 2. Or if the input is 5 6 2, the output should be 5. Sample console I/O execution sequence Enter three integers and you will get the median: 3 1 2 The median is: 2 Enter three integers and you will get the median: 5 6 2 The median is: 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
