Răspuns :
Răspuns:
A)
#include <iostream>
using namespace std;
int main()
{ int impar,n,i;
for(i=1;i<=n;i++)
{ cin>>nr;
if(nr%2==0)
{
impar++;
}
}
cout<<impar;
}
B)
#include <iostream>
using namespace std;
int main()
{ int S=0,n,i,c;
for(i=1;i<=(numerele citite);i++)
{ cin>>n;
while(n!=0)
{ c=n%10;
n=n/10;
S=S+c;
}
}
cout<<S;
}
C)
#include <iostream>
using namespace std;
int main()
{ int oglindit=0,n,nr,c,i,count=0;
for(i=1;i<=n;i++)
{ cin>>nr;
while(nr<>0)
{ c=nr%10;
nr=nr/10;
oglindit=oglindit*10+c;
}
if(oglindit%2==0)
{ count++;
}
}
cout<<count;
}