josiftepe

Untitled

Oct 25th, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 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.     for(int i = 0; i < 5; i += 1) {
  10.         cout << niza[i] << " ";
  11.     }
  12.     return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment