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