Rewrite the following using ternary operator: if(income <
Rewrite the following using ternary operator:
if(income < 10000) tax = 0; else tax = 12;
80 Likes
tax = income < 10000 ? 0 : 12;
Answered By
38 Likes