I am not able to give input every time. It is skipping in between and I can only give input at alternate times I have created a do while loop and trying to take input as char.
#include <stdio.h>
int main()
{
char gender;
do{
printf("Enter gender\n");
scanf("%c",&gender);
if(gender=='m')
printf("Male\n");
else
printf("Other\n");
}while(1);
}