Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <iostream>
- using namespace std;
- ofstream fout("iesire.txt");
- int v[100], n, i;
- int main ()
- {
- cout<<"n= "; cin>>n;
- for(i = 0; i < n; i++)
- {
- cout<<"v["<<i<<"]= "; cin>>v[i];
- }
- for(i = 0; i < n; i++)
- {
- fout<<v[i]<<' ';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement