Cod sursa(job #260601)
Utilizator | Data | 17 februarie 2009 11:48:52 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include <stdio.h>
FILE *f, *g;
int a,b,s;
void main (int)
{
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);
}