josiftepe

Untitled

Oct 25th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     //tip ime_na_niza[dolzina_na_niza] = {element1, element2, ...}
  8.     int niza[5] = {2, 3, 1, 4, 5};
  9.     cout << niza[0] << endl;
  10.     cout << niza[1] << endl;
  11.     cout << niza[2] << endl;
  12.     cout << niza[3] << endl;
  13.     cout << niza[4] << endl;
  14.  
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment