#include<stdio.h>
#include<conio.h>
void main()
{
int s1,s2,s3,s4,s5,sum;
float avg;
printf("\n\n Enter the marks of 5 subjects: ");
scanf("%d%d%d%d%d",&s1,&s2,&s3,&s4,&s5);
sum=s1+s2+s3+s4+s5;
avg=sum/5.0;
printf("\n\n Sum=%d \n\n Average=%f",sum,avg);
getch();
}
#include<conio.h>
void main()
{
int s1,s2,s3,s4,s5,sum;
float avg;
printf("\n\n Enter the marks of 5 subjects: ");
scanf("%d%d%d%d%d",&s1,&s2,&s3,&s4,&s5);
sum=s1+s2+s3+s4+s5;
avg=sum/5.0;
printf("\n\n Sum=%d \n\n Average=%f",sum,avg);
getch();
}