Computer Science, asked by gurvinderkaur9778, 8 months ago

i. Write the following if else statement using ternary operator.
If(a>b)
c= b;
else
c= a;​

Answers

Answered by tonystarkironman94
5

Answer:

c=(a>b)?b:a;

hope this is your answer

Answered by chiragarora22112007
0

Answer:

double c = (a > b) ? b : a ;

Explanation:

Hope you understand it

Similar questions