#include <stdio.h>
int main() {
int i, num, sum=0;
float avg;
for (i=1;i<11;i++){
printf("\nnumber%d = ",i);
scanf("%d",&num);
sum=sum+num;
}
avg=sum/10.0;
printf("\nthe sum of the total numbers are %d ",sum);
printf("\nthe average of the numbers are %f",avg);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: