i. Write the following if else statement using ternary operator.
If(a>b)
c= b;
else
c= a;
Answers
Answered by
5
Answer:
c=(a>b)?b:a;
hope this is your answer
Answered by
0
Answer:
double c = (a > b) ? b : a ;
Explanation:
Hope you understand it
Similar questions
Math,
4 months ago
English,
4 months ago
Hindi,
4 months ago
India Languages,
8 months ago
English,
8 months ago
Computer Science,
1 year ago