Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
335 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main() {

    int golemina;
    cin >> golemina;

    int niza[golemina];
    for(int i = 0; i < golemina; i += 1) {
        cin >> niza[i];
    }

    for(int i = 0; i < golemina; i += 1) {
        if(niza[i] % 2 == 0) {
            cout << niza[i] << " ";
        }
    }
    return 0;
}
Leave a Comment