0
if (a> b) if (a> c) g=a; else g=c; if (b> c) g=b; else g=c;
how to write the following statement using ternary operator or boolean
1 Resposta
+ 2
g = a > b ? (a > c ? a : c) : (b > c ? b : c) ;
how to write the following statement using ternary operator or boolean