rewrite the following using ternary operator
if(a>=b)
d=a+b;
else
d=a-b;
Answers
Answered by
0
syntax:
expression ? statement1 : statement2
or
condition ? true : false
a>=b ? a+b : a-b
Similar questions