Răspunsuri

2014-11-19T19:48:30+02:00
#include<iostream>
using namespace std;
int main(){
int v[100],n,i,sum=0,div=0;
cin>>n;
for(i=1;i<=n;i++)cin>>v[i];
for(i=1;i<=n;i++){if(v[i]%4==0)div++;
sum+=v[i];
}
cout<<"Suma este:"<<sum<<" Nr de numere divizibile cu 4 :"<<div;
return 0;
}