/*Sum of 10 input numbers and their average*/
#include <stdio.h>

int main() {
    int i,n,sum=0;
	float avg;
	printf("Enter the 10 numbers : \n");
	for (i=1;i<=10;i++)
	{
		scanf("%d",&n);
		printf("Number=%d, ",n);
		sum +=n;
	}
	avg=sum/10.0;
	printf("\nThe sum of 10 no is = %d\nThe Average is = %f\n",sum,avg);
 
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: