Computer Science, asked by ayushlfs26, 5 months ago

Rewrite the snippet using Ternary operators:

int c=0;

if(a<b)

{



c=(a+b);

}

else

{



c=(a-b);

}​

Answers

Answered by shashidubey1119
0

Answer:

int a = 10, b = 20, c;

if (a < b) { c = a; } else

{ c = b; } printf("%d", c);

Similar questions