Răspunsuri

2014-05-19T21:06:14+03:00
#include <iostream>
using namespace std;

int main()
{int n,i,a[50],nr=0;

cin>>n;

for (i=1;i<=n;i++)
{cout<<"a["<<i<<"]=";cin>>a[i];}

for (i=1;i<=n;i++)
 if (a[i]%2==0)
  nr++;

  cout<<"Numarul de elemente pare este "<<nr;
}