Advertisement
Josif_tepe

Untitled

Jun 14th, 2024
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int niza[5];
  7.  
  8.     niza[0] = 10;
  9.     niza[1] = 20;
  10.     niza[2] = 30;
  11.     niza[3] = 40;
  12.     niza[4] = 50;
  13.  
  14.     for(int i = 0; i < 5; i++) {
  15.         cout << niza[i] << " ";
  16.     }
  17.    
  18.  
  19.  
  20.     return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement