For C, the statements are run in the same order they appear in the code. So you should do the calculations after you ask for the inputs.


Also this doesn't mean what you think it does:

Code:
if (hoursWorked <= 40 && !0)