Cod sursa(job #1430322)
Utilizator | Data | 8 mai 2015 10:27:07 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <iostream>
#include <fstream>
int main(void)
{
std::ifstream file;
file.open("adunare.in");
int x, y;
file >> x >> y;
int z;
z = x + y;
std::ofstream file2;
file2.open("adunare.out");
file2 << z;
file2.close();
file.close();
return 0;
}