Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
268 B
0
Indexable
Never
#include <iostream>

using namespace std;

int main()
{
    int a, b[100],c=-1;
    cin >> a;
    for(int i=0;i<a;i++){
        cin >> b[i];
        c++;
    }
    
    for(int i=0;i<a;i++){
        if(b[c-i]%2==0){
            cout << b[c-i] << " ";
        }
    }
}