I have written the following code. Which on the basis of few conditions, calculates whether the person is eligible for insurance or not.
When is execute the code, the program does'nt accept the second input and directly jumps to the third input.
Could you please suggest what is wrong witht the code.
printf("\n enter your gender m/f : ");
printf("\n enter your status a/u: ");
printf("\n enter your age: ");
printf("you are insured");
printf("you are not insured");
enter your gender m/f : m
enter your status a/u: <does'nt wait for the user to enter the value>
enter your age: 23
you are not insured