Cod sursa(job #1716807)
Utilizator | Data | 13 iunie 2016 19:19:41 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <iostream>
#include <cstdio>
using namespace std;
FILE *f, *g;
int a, b;
int main()
{
f = fopen("adunare.in", "r");
g = fopen("adunare.out", "w");
fscanf(f, "%d%d", &a, &b);
fprintf(g, "%d", a + b);
fclose(f);
fclose(g);
return 0;
}