Computer Science, asked by mouryakrishnegowda, 5 months ago

rewrite using ternary operator
if (income,<100000)
tax=0
else
tax=(0.1*income);​

Answers

Answered by BrainlyProgrammer
3

Answer:

tax=(income<100000)0:(0.1*income);

Answered by anindyaadhikari13
1

Answer:-

Using ternary operator, we can write this,

tax=(income<100000)?0:0.1*income;

Similar questions