How can I fix it to avoid the continuous looping?Code:do { // prompt and read salesman id printf("Salesman ID (NO.): "); scanf("%d",&stop); if (stop == NULL) { valid = 0; printf("Invalid input. Please input again.\n\n"); } else valid = 1; } while (valid == 0);