rewrite using ternary operator
if (income,<100000)
tax=0
else
tax=(0.1*income);
Answers
Answered by
3
Answer:
tax=(income<100000)0:(0.1*income);
Answered by
1
Answer:-
Using ternary operator, we can write this,
tax=(income<100000)?0:0.1*income;
Similar questions