Question: Assume that an int variable workedOvertime has been declared, and that an int variable hoursWorked has been declared and initialized. Write a statement that assigns
Assume that an int variable workedOvertime has been declared, and that an int variable hoursWorked has been declared and initialized. Write a statement that assigns the value 1 if hoursWorked is greater than 40 and 0 otherwise.
In C Programming
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
