b) Rewrite the following using ternary operator:
intx=0
if (a>b)
x=a* a:
else
x *b*b;
Attachments:
Answers
Answered by
0
uciyftdyfkyxtdycyclxhbm vcztd0y
Answered by
2
Answer:
int x=0;
int k=(a>b)? x=a*a : x=b*b
Similar questions