Hey guys just a question related to the function isdigit() how come if i wish to check if its not a digit it wont work work. Even if i type in an integer it still says that bad input is entered i only want it to print the error if they type in any other character except for integers.
eg
Code:if((!isdigit(h)) { printf("bad input: integers only!\n"); return 0; }