Advertisement
Josif_tepe

Untitled

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