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

output must match the output provided, Java please Write a program which

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

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 Databases Questions!