Computer Science, asked by debdyuti292009, 8 hours ago

Rewrite the following using ternary operator

if (x > 10000) tax = 100 else tax = 0 Convert to ternary operator ​

Answers

Answered by Cahudary
0

Answer:

tax = income < 10000 ? 0 : 12;

Explanation:

if(income < 10000)

tax = 0;

else

tax = 12;

Similar questions