Computer Science, asked by tahsin62, 10 months ago

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 kingcobra1
0

Answer:

max=((a>b&&b>c):(b>a&&b>c)):?(a:b):c;

Similar questions