#include <stdio.h>
int main() {
int arr[5], i;
int sum=0;
float avg;
for (i=0;i<5;i++){
scanf("%d",&arr[i]);
}
for (i=0;i<5;i++){
sum=sum+arr[i];
}
avg=sum/5;
printf("\nthe sum of the class marks: %d",sum);
printf("\nthe average of the class marks is:%.2f",avg);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: