Cod sursa(job #1447988)
Utilizator | Data | 5 iunie 2015 21:43:31 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main(){
ifstream intr("adunare.in");
ofstream outf("adunare.out", ios::app);
char a[10], b[10];
intr.getline(a, 10);
intr.getline(b, 10);
outf << atoi(a) + atoi(b);
cout.flush();
intr.close();
outf.close();
}