Write the following if-else ladder using a nested ternery operator:
if(a>b && b>c)
max=a;
else if(b>a && b>c)
max=b;
else
max=c;
Answers
Answered by
0
Answer:
max=((a>b&&b>c):(b>a&&b>c)):?(a:b):c;
Similar questions