{
int age ;
char gender , condition ;
printf("Enter the age of the customer :");
scanf("%d",&age);
printf("What is the gender of the customer :");
scanf(" %c",&gender);
printf("What is the condition of the customer :");
scanf(" %c",&condition);
switch (age,gender,condition)
{
case '25<age<35 , male , excellent' :
{
printf("The premium is Rs 4 per thousand and premium cannot exceed Rs 2 lakh\n");
break ;
}
case '25<age<35 , female , excellent' :
{
printf("The premium is Rs 4 per thousand and premium cannot exceed Rs 1 lakh\n");
break ;
}
case '25<age<35 , male , poor' :
{
printf("The premium is Rs 6 per thousand and premium cannot exceed Rs 10000\n");
break ;
}
default :
printf("The person is not insured\n");
}
return 0;
}