Pages

Saturday, 19 May 2012

program to find out policy amount or no


34/*Write a program to find out policy amount or not*/

#include<stdio.h>
#include<conio.h>
main()
{
            char h,l,s,b=0,m=0;
            float pa,p;
            int a;
            clrscr();
            scanf("%c%c%c",&h,&l,&s);
            scanf("%f%f",&pa,&p);
            scanf("%d",&a);
            if(h<=25 && h<=35)
            printf("health is excellent");
            if(l==b)
            printf("lives in bikaner");
            else
            if(s==m)
            printf("sex is the male");
            else
            printf("sex is female");
            pa=pa<=200000;
            pa=p*4/1000;
            printf("%f",p);
            printf("polocey amount");
            printf("invalid policy amount");
            getch();
}

No comments:

Post a Comment