Cod sursa(job #598273)
Utilizator | Data | 25 iunie 2011 00:51:05 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <stdio.h>
#include <stdlib.h>
int main()
{ FILE *f,*g; int a,b;
f=fopen("adunare.in","r");
g=fopen("adunare.out","w");
fscanf(f,"%d %d",&a,&b);
fprintf(g,"%d",(a+b));
fclose(g);
fclose(f);
return 0;
system("PAUSE");
}