Originally Posted by musicmancanora4
iv used that and it still dosnt test the condition properly .... i enter for example 5 which is between
0-12 and it still falls inside the if and says "month error 0 or less then equal to 12" then i type it a second type and it works.. why is that?
Thats because the month you are inputing is in different variable than that passed to the validate month variable.
Code: C
month = getUserInput(prompt);
tmpMonth = validateMonth(valMonth, prompt);