Advertisement
mdgaziur001

Untitled

Feb 26th, 2020
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. /*CREATED BY MD GAZIUR RAHMAN NOOR*/
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4. int main()
  5. {
  6.     int ar[1000],n,result=1;
  7.     cin>>n;
  8.     for(int i=0;i<n;i++)
  9.     {
  10.         cin>>ar[i];
  11.     }
  12.    
  13.     for(int j=0;j<n;j++)
  14.     {
  15.         result=result*ar[j];
  16.     }
  17.     cout<<result;
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement