Răspuns :

#include <iostream>

using namespace std;

int main(){

int n,i,x,prod=1;

cin >> n;

for(i=1;i<=n;i++){

   cin >> x;

   prod =prod*x;

}

cout << prod;

}