#include<stdio.h>
#include<conio.h>
void main()
{
char gender,Mar_stat;
int age;
clrscr();
printf("Enter your Marital Status "ma" or "um":\n");
scanf("%c",&Mar_stat);
if (Mar_stat == 'ma')
{
printf("Enter your Gender And Age :\n");
scanf("%c %d",&gender,&age);
if (gender=='M' && age >= 30)
{
printf("You are Insured");
}
else
{
printf("Sorry");
}
getch();
}
}
What i am doing wrong in this program ,
i need a program to ask me If i am married, If married then ask my gender then age , if gender Male or Female and age minimum 30 or 25 respectively then printf("Your are insured ");
but it says nothing........
What am doing wrong