Advertisement
Josif_tepe

Untitled

Nov 7th, 2021
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. using namespace std;
  4. int main()
  5. {
  6.     ifstream fin;
  7.     ofstream fout;
  8.    
  9.     fin.open("in.txt", ios::in);
  10.     fout.open("out.txt", ios::out);
  11.     int a, b;
  12.     fin >> a >> b;
  13.     fout << a + b << endl;
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement