Saturday 10 December 2011

a program to find out policy amount or not in c

#include
#include
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