Răspuns:
#include <iostream>
using namespace std;
int main()
{int v[100],w[100],n,i,ma,s=0,j;
cout<<"n=";cin>>n;
for(i=1;i<=n;i++)
do
{
cout<<"v["<<i<<"]=";
cin>>v[i];
}while(v[i]<10);
for(i=1;i<=n;i++)
{s=s+v[i];}
ma=s/n;
for(j=1;j<=n;j++)
cout<<"w["<<j<<"]="<<ma<<" ";
cout<<endl;
}