Advertisement
MeehoweCK

Untitled

Nov 11th, 2021
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int tablica[5];
  8.     // elementy tablicy zawsze numerujemy od 0 (np. tablica z 5 elementami będzie miała numery elementów 0, 1, 2, 3 i 4
  9.     tablica[0] = 10;
  10.     tablica[1] = 7;
  11.     tablica[2] = 13;
  12.     tablica[3] = 11;
  13.     tablica[4] = 22;
  14.  
  15.     for(int i = 0; i < 5; ++i)
  16.         cout << tablica[i] << '\t';
  17.  
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement