When I type in a number, it gives me 2 2 4 like it should, but when I type in a character like 'a' it doesn't give me 1 1 4 which I would expect. It instead gives me a 1 and then doesn't finish the program. Where is the problem?Code:#include <stdio.h> #include <math.h> int main(void) { char one; int counter; int userEntry; printf("\nEnter barcode: "); userEntry = scanf("%1c", &one); counter = 1; while (counter < 3) { if ( one < '0' || one > '9') { one = getchar (); counter = counter + 1; printf("1\n"); } else { counter = counter + 1; printf("2\n"); } } if (one >= '0' && one <= '9') { one = getchar (); printf("3\n"); } else { printf("4\n"); } return 0; }