Cod sursa(job #285627)
Utilizator | Data | 22 martie 2009 19:38:55 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <cstdio>
int main()
{
FILE *f = fopen("adunare.in", "r");
int a, b;
fscanf(f, "%d%d", &a, &b);
fclose(f);
f = fopen("adunare.out", "w");
fprintf(f, "%ld", a+b);
fclose(f);
return 0;
}