Hey whats wrong with my ternary operator plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hey whats wrong with my ternary operator plz

https://code.sololearn.com/c2gU1udj7QvD/?ref=app

24th Feb 2020, 4:37 PM
Noé Madranges
2 Answers
+ 2
In this program there is no ternary operator. Ternary operator look like this a > b ? a : b; So you can do like this return x > y ? x : y;
24th Feb 2020, 4:41 PM
A͢J
A͢J - avatar
0
oh lol i put the wrong code it was x > y ? return x : return y but thx
25th Feb 2020, 4:27 PM
Noé Madranges