Leer n números, calcule y escriba la suma de los pares y el pro-ducto de los impares

`#include <iostream> using namespace std; int main() { int n, i, sumpar=0, proimpar=1; cout << "Enter the number of element" << endl; cin >> n; int a[n]; for(i=0; i<n; i++){ cout << "Enter the number " << i+1 << " "; cin >> a[i]; if(a[i]%2==0){ sumpar = sumpar + a[i]; } else{ proimpar = proimpar * a[i]; } } cout << "The sum of the even numbers is " << sumpar << endl; cout << "The product of the odd numbers is " << proimpar << endl; return 0; }`