Computer Science, asked by paulchhandasree, 4 months ago

Rewrite the following using ternary operators:
if (a%b = = 0)
c=a+b;
else
c=a-b;​

Answers

Answered by himanshu2006vps
2

Answer:

if (a%b = = 0)?c=a+b; : c=a-b

Similar questions