if int a = 9;
int b = 4; c = a > b ? (a-b) : (a+b)
Answers
Answered by
1
Answer:-
Given,
a=9
b=4
c=(a>b)?(a-b):(a+b);
a>b is true as 9>4 is true.
So,
c=a-b
=9-4
=5
Hence, the value of c is 5.
Similar questions