programs to find biggest of 3 numbers using ternary operators? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

programs to find biggest of 3 numbers using ternary operators?

11th Jul 2016, 2:46 AM
Caraline Raj
Caraline Raj - avatar
2 Answers
+ 1
A= x>y&&x>z ?echo x :y>z?echo y : echo z. use this code if number are x y z we can use ternary operator like nested if else aslo
11th Jul 2016, 5:28 AM
ranjeet darjee
ranjeet darjee - avatar
0
($a>$ b)?echo $a is big:echo $ c is big; ($b <$c)? echo $ c is big:echo $ bis big;
11th Jul 2016, 3:39 PM
Prasanth Mariyala
Prasanth Mariyala - avatar