edi96603

nrazycostam

Feb 28th, 2020
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int nmax,n,przechowalnia;
  6.  
  7.  
  8. int main()
  9. {
  10. cout << "Ile liczb chcesz wprowadzic? \n";
  11. cin >> nmax;
  12. int i;
  13. for (i=nmax; i<=nmax && i >=1;i--)
  14. {
  15.     cin >> n;
  16.     przechowalnia*=n;
  17.  
  18. }
  19. cout << przechowalnia-1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment