#include<stdio.h>
int main()
{
    printf("Enter a : ");
    scanf("%c",&a);
    printf("Enter b : ");
    scanf("%c",&b);
    printf("Enter c : ");
    scanf("%c",&c);
    printf("Enter d : ");
    scanf("%c",&c);
}
output:
C:\Users\Saran\Desktop>gcc new.c
C:\Users\Saran\Desktop>a
Enter a : s
Enter b : Enter c : c
Enter d :
if this is my code, it takes first char into variable 'a' and then if i press enter the variable 'b' takes enter as its input. how to overcome this problem?
 
     
    