#include<conio.h>
#include<stdio.h>
void main()
{
int a,b,c,d,e,t,p;
clrscr();
printf("\n Enter math marks:-");
scanf("%d",&a);
printf("\n Enter science marks:-");
scanf("%d",&b);
printf("\n Enter hindi marks:-");
scanf("%d",&c);
printf("\n Enter english marks:-");
scanf("%d",&d);
printf("\n Enter social science:-");
scanf("%d",&e);
t=a+b+c+d+e;
printf("\n total number=%d",t);
p=t/5;
printf("\n percent=%d",p);
getch();
}
#include<stdio.h>
void main()
{
int a,b,c,d,e,t,p;
clrscr();
printf("\n Enter math marks:-");
scanf("%d",&a);
printf("\n Enter science marks:-");
scanf("%d",&b);
printf("\n Enter hindi marks:-");
scanf("%d",&c);
printf("\n Enter english marks:-");
scanf("%d",&d);
printf("\n Enter social science:-");
scanf("%d",&e);
t=a+b+c+d+e;
printf("\n total number=%d",t);
p=t/5;
printf("\n percent=%d",p);
getch();
}
To see Output of this program click on link:-
No comments:
Post a Comment