Person Inshured for Take Money
#include<stdio.h>
#include<conio.h>
void main()
{
int age;
char ms,g;
printf("Enter Your Age ");
scanf("%d",&age);
printf("Enter m For Married And u For Unmarried ");
scanf(" %c",&ms);
printf("Enter m For Male, f For Female ");
scanf(" %c",&g);
if(ms=='m')
printf("You Are Insured.");
else if(ms=='u'&&g=='m'&&age>30)
printf("You Are Insured");
else if(ms=='u'&&g=='f'&&age>25)
printf("You Are Insured");
else
printf("You Are Not Insured");
getch();
clrscr();
}
No comments:
Post a Comment