Untitled
Anonymous
C++
10/18/2023 7:25 PM
172 B
16
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
int a, c;
cin >> a;
int b = 1;
for (int i = 1; i <= a; i++) {
cin >> c;
b *= c;
}
cout << b;
}Editor is loading...