Advertisement
Josif_tepe

Untitled

May 14th, 2021
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     ifstream cin ("input.txt");
  8.     ofstream cout ("output.txt");
  9.     int n;
  10.     cin >> n;
  11.     int niza[n];
  12.     for (int i = 0; i <= n-1; i++)
  13.     {
  14.         cin >> niza[i];
  15.     }
  16.     for (int i = 0; i <= n-1; i++)
  17.     {
  18.         cout << niza [i] << endl;
  19.     }
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement