#include<stdio.h>
int main()
{
    float i,a,n,c;
    
    for(i=1;i<=10;++i)
        {
            
        scanf("%f",&n);
        a=c+i;
            
        }
    c=a/10;
    
    printf("sum=%.1f\n",a);
    printf("average=%.1f\n",c);
}

Embed on website

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