I just don't understand where is the wrong? when I taking the input value without Y or y then output shows two times then I can again take input but it should be one time. So can anyone help me?
I AM SORRY COCO
Do you want to stop me?
I AM SORRY COCO
Do you want to stop me?
char stop;
while(1){
printf("I AM SORRY COCO\n");
printf("Do you want to stop me?\n");
scanf("%c",&stop);
if(stop=='Y'||stop=='y'){
break;
}