how come when i key in any value other than 1,2,3,4Code:#include <stdio.h> main(void) { int choice = 0; while(choice != 4) { printf("key in a value"); scanf("%d", &choice); if (choice >= 1 && choice <= 3) switch(choice) { case 1: printf("yes"); break; case 2: printf("double yes"); break; case 3: printf("trileple yes"); break; case 4: printf("byebye"); break; default: printf("wtf,type again"); } } }
the while loop keep repeat infinite(the key in a value keep repeat n repeat n repeat)