Advertisement
Josif_tepe

Untitled

Feb 10th, 2021
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int n;
  6.     cin >> n;
  7.     int niza[n]; // niza od n clenovi
  8.     for(int i = 0; i < n; i++) {
  9.         cin >> niza[i]; // vnesi gi vrednostite od tastatura
  10.     }
  11.     for(int i = 0; i < n; i++) {
  12.         cout << niza[i] << " ";
  13.     }
  14.    
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement