Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- int n, x;
- ifstream in("inp.txt");
- in >> n;
- for (int i = 0; i < n; i++)
- in >> x;
- in.clear();
- in.seekg(ios::beg);
- in >> n;
- for (int i = 0; i < n; i++)
- {
- in >> x;
- cout << "X = " << x << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement