Advertisement
marius7122

Untitled

Jul 12th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <fstream>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. ofstream fout("iesire.txt");
  7.  
  8. int v[100], n, i;
  9.  
  10. int main ()
  11. {
  12.     cout<<"n= "; cin>>n;
  13.  
  14.     for(i = 0; i < n; i++)
  15.     {
  16.         cout<<"v["<<i<<"]= "; cin>>v[i];
  17.     }
  18.  
  19.     for(i = 0; i < n; i++)
  20.     {
  21.         fout<<v[i]<<' ';
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement