Writing a program that simply converts time. Have the program written and it compiles just fine--however...
When the program asks for the user to enter the hours (1-12) and the user enters a valid hour, the program loops--just asks for the user to enter the hours again, which is obviously incorrect.
If the user enters a value < 0 or > 12 the program prints the correct exception and loops to ask the user to input the hours again (which is correct).
code for the hour entry is listed below--thank you for your help!
Sometimes I just have to shake my head at myself (I seem to have a lot of problems thinking through loops--I probably need to start making flowcharts to assist me).
moving that line and adding the if statement worked wonders!