#include "stdio.h"
#define n 10
main()
{
int i,a[n],sum=0,average;
for(i=1;i<=n;i++)
{printf("please enter the %dth number:",i);
scanf("%d",&a[i]);
sum+=a[i];}
average=sum/n;
printf("the average is %d",average);
}
#define n 10
main()
{
int i,a[n],sum=0,average;
for(i=1;i<=n;i++)
{printf("please enter the %dth number:",i);
scanf("%d",&a[i]);
sum+=a[i];}
average=sum/n;
printf("the average is %d",average);
}