1: #include<stdio.h>
2: #include<conio.h>
3: void main()
4: {
5: int m1,m2,m3,m4,m5,aggr;
6: float per;
7: clrscr();
8: printf(“\nEnter marks in 5 subject:”);
9: scanf(“%d%d%d%d%d”,&m1,&m2,&m3,&m4,&m5);
10: aggr=m1+m2+m3+m4+m5;
11: per=aggr/5;
12: printf(“\nAggregate Marks=%d”,aggr);
13: printf(“\nPercentage Marks=%f”,per);
14: printf(“\n\n\n\nPress any key yo exit….”);
15: getch();
16: }
Comments
Post a Comment