Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iomanip>
- #include<iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- ofstream file;
- ifstream gile;
- file.open("output.txt");
- gile.open("input.txt");
- int x,y;
- gile>>x>>y;
- cout<<x<<y;
- x=x+y;
- cout<<x;
- file << "Привет, мир!";
- file.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement