void main () {
    char f;
   do {
        scanf("%c",&f);// input a  character
        printf("%c",f);//output a  character
   }while(f=='y');
}
any value is going to end the program even if y put is end the program can anyone explain the reason on this program I am stuck at this ..
 
     
    