.Rewrite the snippet using Ternary Operators:
if(a<b)
c=a+b;
else
c=a-b;
Answers
Answered by
13
Answer:
int c= a < b? a + b : c - b;
Explanation:
Similar questions