I have this code here but the program is all the time saying that the input isn't a number, even if I enter a digit between 1 and 10. Could you help me to find why? Thanks
int main (void){
int iUserImput = 0;
printf("\nEnter a number between 1 and 10: ");
scanf("%d", &iUserImput);
if (isdigit(iUserImput) == 0)
printf("\nThat wasn't a number\n");
else
printf("\nThat was a number\n");
}