Josif_tepe

Untitled

Dec 13th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4.     int n;
  5.     cin>>n;
  6.    
  7.     int niza[n];
  8.     for(int i=0; i<n; i++){
  9.         cin>>niza[i];
  10.     }
  11.     int proizvod=1;
  12.     for(int i=0; i<n; i++){
  13.         proizvod*=niza[i];
  14.     }
  15.     cout<<proizvod<<endl;
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment