Problema 1.
#include <iostream>
using namespace std;
int main() {
int a;
int suma=0;
do{
cin>>a;
if(a%2==0){
suma=suma+a;
}
}while(a!=0);
cout<<suma;
return 0;
}
Problema 2
#include <iostream>
using namespace std;
int main() {
int a;
int impar=0;
do{
cin>>a;
if(a%2!=0){
impar++;
}
}while(a!=0);
cout<<impar;
return 0;
}