When it asks me to enter a character and I enter say 'b', it executes the last line and then the whole loop again along with the last line without executing the scanf statement in between.
#include <stdio.h>
void main()
{
    char ch = 'C';
     while( ch != 'A')
        {
            printf("Enter your character\n");
            scanf("%c" ,&ch);
            printf("\nLoop must execute completely\n");
        }
    
    }
 
    