Untitled
Anonymous
plain_text
11/05/2022 9:23 PM
360 B
13
Indexable
#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] << " ";
}
}
}Editor is loading...