Computer Science, asked by lataee01, 3 months ago

Rewrite the following using ternary operator
if(a+b>20)
d=a*b;
else
d=a+b;

Answers

Answered by priya7668
2

Answer:

d= (a+b>20)?a*b:a+b;

Explanation:

I hope... it will helpful to you...

Similar questions