Untitled
unknown
c_cpp
2 years ago
197 B
25
Indexable
#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;
}Editor is loading...