#include<stdio.h>
main()
{
char sex,ms;
int age;
printf ("Enter age, sex, marital status:");
scanf ("%d %c %c", &age, &sex, &ms);
if ((ms=='M') || (ms=='U' && sex== 'M' && age>30) || (ms=='U' && sex== 'F' && age>25))
printf ("Driver is insured");
else
printf ("Driver is not insured");
}
You can also download the file at:
Download File
main()
{
char sex,ms;
int age;
printf ("Enter age, sex, marital status:");
scanf ("%d %c %c", &age, &sex, &ms);
if ((ms=='M') || (ms=='U' && sex== 'M' && age>30) || (ms=='U' && sex== 'F' && age>25))
printf ("Driver is insured");
else
printf ("Driver is not insured");
}
You can also download the file at:
Download File
No comments:
Post a Comment
kiss on google ads if you are anonymous because your ip is trackable.thank you.
......from.admin