Salut.Uite aici rezolvarea problemei. Succes in continuare!
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int n,x,i;
int aux=0, s=0, k=0;
int suma=0, h=0;
cout<<"n=";cin>>n;
for(i=1;i<=n;i++)
{
cin>>x;
aux=aux*10+x%10;
s=s+x;
if(x%5==0)
{
suma=suma+x;
k++;
}
if(x%2==0)
h++;
}
cout<<"Media aritm.: "<<(float)s/n<<endl;
cout<<"Media aritm nr. div. 5: "<<(float)suma/k<<endl;
cout<<"Nr. pare: "<<h<<endl;
cout<<"Nr. format din cif.: "<<aux<<endl;
getch();
}