fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int C, N, S, V;
  6. S = 1;
  7. cin >> V;
  8. for (C = 0; C < V; C = C + 1) {
  9. cin >> N;
  10. S = S * N;
  11. };
  12. cout << S;
  13. return 0;
  14. }
Success #stdin #stdout 0s 4448KB
stdin
3
7
5
2
stdout
70