SOURCE CODE:
include<stdio.h>
#include<conio.h>
void main()
{
float c,e,m,t,p;
clrscr();
printf("enter marks of C.P.U. :");
scanf("%f",&c);
printf("enter marks of E.E.E. :");
scanf("%f",&e);
printf("enter marks of MATHS :");
scanf("%f",&m);
t=c+e+m;
p=t/3;
printf("\nyour percentag is %f%",p);
if(p>=70)
{
printf("\nyou got distiction.");
}
else
{
printf("\nyou don't got distiction.");
}
getch();
}
include<stdio.h>
#include<conio.h>
void main()
{
float c,e,m,t,p;
clrscr();
printf("enter marks of C.P.U. :");
scanf("%f",&c);
printf("enter marks of E.E.E. :");
scanf("%f",&e);
printf("enter marks of MATHS :");
scanf("%f",&m);
t=c+e+m;
p=t/3;
printf("\nyour percentag is %f%",p);
if(p>=70)
{
printf("\nyou got distiction.");
}
else
{
printf("\nyou don't got distiction.");
}
getch();
}
No comments :
Post a Comment