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
4
hours>=40.0:wages=40*7.50+1.5*7.5(hours-40)?wages=hours*7.50;
Easy next next program
Easy next next program
Similar questions