#include
int main()
{
int s1,s2,s3,s4,s5;
float avg;
Printf("Enter the marks Of 5 Subjects one by one:\t");
scanf("%d %d %d %d %d",&s1, &s2, &s3, &s4, &s5);
avg=(s1+s2+s3+s4+s5)/5;
printf("\nThe Average mark of the 5 subjects you have Entered is %f",avg);
}
OUTPUT
Enter the marks Of 5 Subjects one by one: 70 54 68 99 57
The Average mark of the 5 subjects you have Entered is 69.60
thanks,
Tushar Khoje
No comments:
Post a Comment