void main()
{
int p,c,m,h,e,z,t,per;
printf("Enter mark");
printf("p=");
scanf("%d\n",&p);
printf("c=");
scanf("%d\n",&c);
printf("m=");
scanf("%d\n",&m);
printf("h=");
scanf("%d\n",&h);
printf("e=");
scanf("%d\n",&e);
z=0;
if(p<33)
{z++; }
if(c<33)
{z++;}
if(m<33)
{z++;}
if(h<33)
{z++;}
if(e<33)
{z++;}
if(z==1)
{
printf("result= sumplimentry");
}
if(z>1)
{ printf("result = fail");
}
if(z<1)
{
printf("result is pass\n" );
t=p+c+m+h+e;
printf("Total is %d\n");
per= t/5;
printf("percentage is %d\n",per);
if(per>=60);
{
printf("Ist division");
}
if(per>=45&&per<60);
{
printf("IInd division");
}
if(per<45)
{
printf("IIIrd division");
}
}
}
0 comments:
Post a Comment