the first iteration of the loop works fine. then, it comes back around and asks the user to enter in a command but does not implement scanf(). can someone pls tell me how to fix this?
Code:loop: printf("enter command:"); scanf("%c",&x) switch(x){ case 'o': printf("open"); goto loop; case 'b': printf("boost"); goto loop; case 'q': printf("quit"); goto loop; }