Computer Science, asked by assassinaasim22, 6 months ago

write the ternary statement using if else net=(sal>15000)?15000-(12.33/100)*sal:sal-(12.33/100)*sal​

Answers

Answered by imtiyazallam
0

Answer:

if (sal > 15000) {

     net = 15000 - (12.33 / 100) * sal;

} else {

     net = sal - (12.33 / 100) * sal;

}

Similar questions