Cod sursa(job #2231848)
| Utilizator | Data | 16 august 2018 11:35:58 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | teme_upb | Marime | 0.28 kb |
#include <iostream>
#include <fstream>
using namespace std;
FILE*f=fopen("adunare.in","r");
ofstream g("adunare.out");
int main()
{
int a,b;
fscanf(f, "%d", &a);
fscanf(f, "%d", &b);
g<<a+b<<'\n';
fclose(f);
g.close();
return 0;
}
