//Program to find aggregate marks and percentage
#include<stdio.h>
#include<conio.h>
void main ()
{
float m1,m2,m3,m4,m5,sum,per;
clrscr();
printf("\n Enter the marks of 5 subjects (Max:mark is 100)\n");
scanf("%f%f%f%f%f",&m1,&m2,&m3,&m4,&m5);
sum=m1+m2+m3+m4+m5;
per=(sum/500)*100;
printf("\n The aggregate marks of 5 subjects is %.2f and percentage is %.2f",sum,per);
getch();
}
0 comments:
Post a Comment