I am trying to make build a little program that would loop as long as the user presses a specific key but for a reason I can't see, it exits the loop Here's what it looks like
int main()
{
char choice;
do{
printf("Do you want to start ? \nPress y to begin\n");
scanf("%c",&choice);
if(choice=='y' || choice=='Y'){
printf("LETS GO \n");
}
}while(choice=='y' || choice =='Y');
printf("END\n");
return 0;
}