#include
#include
void main()
{
int n ,a[20],sum=0,avg;
clrscr();
cout<<"enter size of array: ";
cin>>n;
cout<<"Enter elements of Array: ";
for(int i=0;i
cin>>a[i];
}
cout<<"sum of elements of array: ";
for(i=0;i
sum=sum+a[i];
}
cout<
avg=sum/n;
cout<
}