Answer:
#include <iostream>
using namespace std;
int main() {
int num = 0, sum = 0;
do {
cin >> num;
if (num % 2 == 0) {
sum += num;
}
} while (num != 9999);
cout << "The sum of the even numbers is " << sum;
1.6m questions
2.0m answers