14. Rewrite the following using ternary operator.
(a) if(income<=100000)
tax =0;
else
tax = (0.1*income);
(b) if(p>5000)
d = p*5/100;
else
d = p*2/100;
Answers
Answered by
0
Answer:
Rewrite the following using ternary operator.
(a) if(income<=100000)
tax =0;
else
tax = (0.1*income);
d = p*2/100;
Similar questions