Challenge 7 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Challenge 7

Write a Java code to input three numbers and output the median. Conditions: I)You cannot use if statement. ii)You cannot use conditional operations. iii)You cannot use arrays. The one who does it in the smallest time wins... Waiting. And these are the stats. https://code.sololearn.com/W0wkmhOLVnju/?ref=app

16th Jul 2017, 9:23 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
4 Answers
+ 14
@Chirag ?: is conditional operator. https://code.sololearn.com/c1wZsbfUX3nF/?ref=app
16th Jul 2017, 2:25 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 8
16th Jul 2017, 9:44 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 7
too late
16th Jul 2017, 10:25 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 5
@krishna sir......๐Ÿ˜ข๐Ÿ˜ฑ๐Ÿ˜ฑ OOPSSSS!!!!!!!!! as much as i remember i was in a hurry while writing this code and so assumed ?: to be just a ternary operator........๐Ÿ˜“๐Ÿ˜“๐Ÿ˜“๐Ÿ˜ก๐Ÿ˜ก๐Ÿ˜ก............ have to take care of this thing from now..........
16th Jul 2017, 3:46 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar