+ 19

Without using if else statement and ternary operators ,accept 3 unequal no & display the 2nd smallest no.

by using scanner or inputstreamreader classes

18th Feb 2018, 2:18 AM
Monika Reddy
2 odpowiedzi
+ 23
take the numbers in an int array , use Arrays.sort (arrayname); and then print , arrayname (1); // 2nd smallest no. without if-else , ternary op. 👍
18th Feb 2018, 2:51 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 1
hii
30th Apr 2018, 8:36 AM
Dodiya Kalpesh