Write a program in Java to input three unequal numbers and display the second smallest number.
Answers
Answered by
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
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
Math,
3 months ago
CBSE BOARD X,
3 months ago
Math,
3 months ago
Social Sciences,
7 months ago
Math,
11 months ago