top of page

#include    <iostream>

#include    <fstream>

using namespace std;

ifstream f("fisier1.txt");

ofstream g("fisier2.txt");

int main()

{

    int a, b;

    f >> a >> b;

    g << a << " + " << b << " = " << a + b;

    return 0;

}

bottom of page