Computer Science, asked by rehan33, 1 year ago

rewrite the following using ternary operator
if (hours>=40.0)
wages=40*7.50+1.5*7.5*(hours_40);
else
wages=hours*7.50;

Answers

Answered by manasvini
4
hours>=40.0:wages=40*7.50+1.5*7.5(hours-40)?wages=hours*7.50;
Easy next next program
Similar questions