write the ternary statement using if else net=(sal>15000)?15000-(12.33/100)*sal:sal-(12.33/100)*sal
Answers
Answered by
0
Answer:
if (sal > 15000) {
net = 15000 - (12.33 / 100) * sal;
} else {
net = sal - (12.33 / 100) * sal;
}
Similar questions