#include<stdio.h>
int main()
{
int a, b, c, d, e, sum;
float ave;
printf("Enter Marks of Subjects 1 =");
scanf("%d",&a);
printf("Enter Marks of Subjects 2 =");
scanf("%d",&b);
printf("Enter Marks of Subjects 3 =");
scanf("%d",&c);
printf("Enter Marks of Subjects 4 =");
scanf("%d",&d);
printf("Enter Marks of Subjects 5 =");
scanf("%d",&e);
sum = a+b+c+d+e;
ave = sum/5;
printf("\nSum of the Marks are :- %d ", sum);
printf("Average of the Marks are :- %f", ave);
getch();
}
Output :-
I wanna thanks to a great extent for providing such informative and qualitative material therefore often.
ReplyDeleteprofessional web design agency