Rewrite the following using ternary operator
if(a+b>20)
d=a*b;
else
d=a+b;
Answers
Answered by
2
Answer:
d= (a+b>20)?a*b:a+b;
Explanation:
I hope... it will helpful to you...
Similar questions