/*while example*/ #include int main(void) { const int SECRET_CODE = 15; int code; printf("Type the secret number to enter.\n"); scanf("%d", &code); while(code != SECRET_CODE) { printf("Type the secret number to enter.\n"); scanf("%d", &code); } printf("Well done , you can now enter.\n"); return 0; }