open_in_new
content_copy
int x; cin >> x; while (x > 0) { if (x % 2 == 0) cout << x << " "; cin >> x; }