Hey whats wrong with my ternary operator plz | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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