Rewrite the following using ternary operator
if (x > 10000) tax = 100 else tax = 0 Convert to ternary operator
Answers
Answered by
0
Answer:
tax = income < 10000 ? 0 : 12;
Explanation:
if(income < 10000)
tax = 0;
else
tax = 12;
Similar questions