why does this code present me the menu twice everytime i chose an option? i think it has something to do with the while loop.
#include <stdio.h>
void main(){
char choice;
int enter =1;
while(enter ==1){
printf("choose from options\n");
printf("a do something\n");
printf("b do something else\n");
printf("c quit\n");
choice = getchar\(\);
switch\(choice\)\{
case 'a':
printf\("apply a"\);
break;
case 'b':
printf\("apply b"\);
break;
case 'c':
enter=0;
break;
default:
printf\("something"\);
\}
}
}