Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
197 B
19
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	int n, tmp;
	int product = 1;
	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> tmp;
		product *= tmp;
	}
	cout << product;
}