#include<stdio.h>
#include<conio.h>
void main()
{
int s1,s2,s3,s4,s5,sum;
float avg;
clrscr();
printf("\n Enter Subject 1 Marks : ");
scanf("%d",&s1);
printf("\n Enter Subject 2 Marks : ");
scanf("%d",&s2);
printf("\n Enter Subject 3 Marks : ");
scanf("%d",&s3);
printf("\n Enter Subject 4 Marks : ");
scanf("%d",&s4);
printf("\n Enter Subject 5 Marks : ");
scanf("%d",&s5);
sum = s1+s2+s3+s4+s5;
printf("\n\n THE SUMATION IS %d ",sum);
avg = sum/5;
printf("\n\n THE AVERAGE IS %.2f",avg);
getch();
}
******************OUTPUT****************************************
Enter Subject 1 Marks : 41
Enter Subject 2 Marks : 58
Enter Subject 3 Marks : 60
Enter Subject 4 Marks : 70
Enter Subject 5 Marks : 60
THE SUMATION IS 289
THE AVERAGE IS 57.00
****************************************************************