Computer Science, asked by daskoustav, 7 months ago

Write a program in Java to input three unequal numbers and display the second smallest number.

Answers

Answered by misti92
6

Answer:

Given three numbers a , b and c , you can get the "second smallest" in a single line of code: int second = Math. max(Math. min(a,b), Math.

Answered by SHIVAMBANDE18122005
6

Explanation:

Given three numbers a , b and c , you can get the "second smallest" in a single line of code: int second = Math. max(Math. min(a,b), math

Similar questions