Question: output must match the output provided, Java please Write a program which reads 3 distinct integers and prints the middle (median) of the three numbers
output must match the output provided,
Java please

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 562, the output should be 5. Sample console /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
