hi all
right now i got this code
if (scanf("%d %d", &year, &month)!=2) {
printf("Input error\n");
}
it sort of behaves how i wanted it to like when i didnt enter 2 integers will pop out input error
however if i enter 1 integer the program will be stuck and just appear normal until i enter something twice
how do i fix it so that it will print input error if i enter less than 2 integer?
thx