Cod sursa(job #124611)
Utilizator | Data | 19 ianuarie 2008 17:37:04 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *i;
FILE *o;
int a,b,s;
i=fopen("adunare.in","r");
fscanf(i,"%ld\n",&a);
fscanf(i,"%ld\n",&b);
s=a+b;
o=fopen("adunare.out","w");
fprintf(o,"%ld",s);
fclose(o);
fclose(i);
system("PAUSE");
return 0;
}