#include <iostream>
using namespace std;

int main() {
    int arr[]={2,3,4,5,6,7,8,9};
    int n = sizeof(arr)/4;
    for (int i = 0;i<=n-1 ;i++ ) {
        if (arr[i]%2==0) {
            cout<<arr[i]+10<<endl;
        }
        else cout<<arr[i]*2<<endl;
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: