Computer Science, asked by HemikaArsha, 6 months ago

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 vasugaya2
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