Cod sursa(job #2778409)
Utilizator | Data | 1 octombrie 2021 12:46:50 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.37 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main ()
{
ifstream fileInput;
fileInput.open("adunare.in");
int a, b;
fileInput >> a;
fileInput >> b;
fileInput.close();
ofstream fileOutput;
fileOutput.open("adunare.out");
fileOutput << a+b;
fileOutput.flush();
fileOutput.close();
return 0;
}