#include<stdio.h>
#include<conio.h>
void main()
{
char a, b;
scanf("%c",&a);
if(a=='n')
{
scanf("%c",&b);
if(b=='n')
{
printf("sucessful");
}
}
else
printf("fail");
getch();
}
problem with the code reading 'b' variable. Why can't it read 'b' variable. It will work when the datatype is int, or float. Please help me with the logic.