MeehoweCK

Untitled

Jan 25th, 2021
735
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     // sposób I:
  8.     int tablica[15];
  9.     tablica[0] = 5;
  10.     for(int i = 1; i < 15; ++i)
  11.         tablica[i] = tablica[i - 1] + 5;
  12.  
  13.     for(int i = 0; i < 15; ++i)
  14.         cout << tablica[i] << '\t';
  15.     cout << endl;
  16.  
  17.     return 0;
  18. }
RAW Paste Data