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
English,
4 months ago
English,
4 months ago
Math,
4 months ago
Social Sciences,
10 months ago
Math,
1 year ago