Cod sursa(job #260625)
Utilizator | Data | 17 februarie 2009 12:14:40 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <stdio.h>
int main (int)
{
FILE *f, *g;
int a,b,s;
f=fopen("ab.in","r");
g=fopen("ab.out","w");
fscanf (f, "%d %d", &a, &b);
s=a+b;
fprintf (g, "%d", s);
fclose (f);
fclose (g);
return 0;
}