——)——————

余晓洁老牧师 · 发布于 2026-05-26 · 浏览 187 回复 0
#include <iostream>
#include <iomanip>
using namespace std;

int main() {
	int n, c = 0;
	cin >> n;

	while (n != 0) {
		int x = n % 10;

		if (x == 0 || x == 2 || x == 4 || x == 6 || x == 8) {
			c++;
		}

		n /= 10;
	}

	cout << c;
}

全部回复 共 0 条

还没有人回复。往下写第一条。

发表回复