Hi,
I really don't understand whats wrong with this condition:
111 and 5 both display the "Enter a number between.." message.Code:// validate input
if (isdigit(iResponse) && (iResponse >= 1 || iResponse < 10)) {
printf("\nThank you\n");
} else {
printf("\nEnter a number between 1 and 10!\n");
}
So I want the user to input a NUMBER only and BETWEEN 1 and 10. What am I doing wrong here?
Thanks in advance.