Variable not initialized after while loop
I have some code that contains the variable hoursWorked. My code has the user input the hoursWorked and it functions. Now I want to put this line of code into a while loop to make loop until the entered value is >0. When I do this the variable hoursWorked which is used after this while statement now thinks it isn't initialized after the while statement. Why would adding the while loop make the program think the hoursWorked varialble isn't initialized later on in the code?