#include<stdio.h>
main()
{
int m1, m2, m3, m4, m5, total;
float percentage;
printf ("Enter the marks obtained by the student in all the five subjects: ");
scanf ("%d %d %d %d %d", &m1, &m2, &m3, &m4, &m5);
total= m1+m2+m3+m4+m5;
percentage = total/5;
printf ("\nThe aggregate marks obtained by the student are: %d", total);
printf ("\nThe percentage obtained by the student are %f", percentage);
}
The File can be found at:
Download File
main()
{
int m1, m2, m3, m4, m5, total;
float percentage;
printf ("Enter the marks obtained by the student in all the five subjects: ");
scanf ("%d %d %d %d %d", &m1, &m2, &m3, &m4, &m5);
total= m1+m2+m3+m4+m5;
percentage = total/5;
printf ("\nThe aggregate marks obtained by the student are: %d", total);
printf ("\nThe percentage obtained by the student are %f", percentage);
}
The File can be found at:
Download File
No comments:
Post a Comment
kiss on google ads if you are anonymous because your ip is trackable.thank you.
......from.admin