Cod sursa(job #361849)
Utilizator | Data | 6 noiembrie 2009 20:51:19 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <stdio.h>
FILE *f;
using namespace std;
int main() {
long a,b;
f=fopen("adunare.in","r");
fscanf(f,"%ld %ld",&a,&b);
fclose(f);
f=fopen("adunare.out","w");
fprintf(f,"%ld",a+b);
fclose(f);
return 0;
}