Cod sursa(job #2559510)
Utilizator | Data | 27 februarie 2020 12:53:19 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <fstream>
using namespace std;
int main(){
int A, B;
ifstream fileIn;
fileIn.open("adunare.in");
ofstream fileOut;
if(fileIn.is_open()){
fileOut.open("adunare.out");
fileIn>>A;
fileIn>>B;
fileOut<<A+B;
}
fileIn.close();
fileOut.close();
}