#include <stdio.h>

int main()
{
    int  i,n1,sum=0,avg;
    printf("Enter the number : \n");
    for (i=1;i <= 10;i++)
    {
        
        scanf("%d",&n1);
        sum+=i;
        avg=sum/n1;
        printf("%d ",i);    
    }
    printf("\nThe Sum  : %d\n", sum);
    printf("The average : %d\n",avg);
}

Embed on website

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