1.
#include <iostream>
using namespace std;
int main()
{
int n;
while (n != 0)
{
cin >> n;
if (n % 2 == 0)
{
cout << n << " ";
}
}
return 0;
}
2.
#include <iostream>
using namespace std;
int main()
{
int n, num = 0;
while (n != 0)
{
cin >> n;
if (n % 2 != 0)
{
num++;
}
}
cout << num;
return 0;
}
3.
#include <iostream>
using namespace std;
int main()
{
int n, sum = 0;
while (n != 0)
{
cin >> n;
if (n >= 0)
{
sum += n;
}
}
cout << sum;
return 0;
}