Advertisement
MeehoweCK

Untitled

Apr 27th, 2023
749
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 main()
  6. {
  7.     int tablica[10];
  8.     tablica[0] = 1;
  9.     for(int i = 1; i < 10; ++i)
  10.         tablica[i] = tablica[i - 1] * 2;
  11.     for(int i = 0; i < 10; ++i)
  12.         cout << tablica[i] << endl;
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement