Cod sursa(job #76442)
Utilizator | Data | 9 august 2007 22:46:09 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <stdio.h>
main()
{
int a, b;
FILE *f;
f = fopen("adunare.in", "rt");
fscanf(f,"%d\n%d", &a, &b);
fclose(f);
a += b;
f = fopen("adunare.out", "wt");
fprintf(f,"%d", a);
fclose(f);
return(0);
}