Răspuns:
Explicație:
#include <iostream>
using namespace std;
int B1[100], y, i, ma, s, k;
int main()
{ s=0; k=0;
cin>>y;
for(i=1;i<=y;i++)
{
cin>>B1[i];
if(B1[i] / 6 == 0) { s+=B1[i]; k++;}
}
ma=s/k;
cout<<ma<<endl;
for(i=1;i<=y;i++)
{
if(B1[i] /7 ==0 || B1[i]/5 ==0)
cout<<B1[i]+10<<" ";
}
cout<<endl;
for(i=1;i<=y;i++)
{
B1[i]=B1[i]*100+25;
cout<<B1[i]<<" ";
}
return 0;
}