Rewrite the following using ternary operators:
if (a%b = = 0)
c=a+b;
else
c=a-b;
Answers
Answered by
2
Answer:
if (a%b = = 0)?c=a+b; : c=a-b
Similar questions