Cod sursa(job #1210897)
Utilizator | Data | 21 iulie 2014 16:13:45 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <stdio.h>
int main() {
int a, b, s;
FILE *f;
f = fopen("adunare.in", "r");
fscanf(f, "%d %d", &a, &b);
fclose(f);
f = fopen("adunare.out", "w");
s = a+b;
fprintf(f, "%d\n", s);
fclose(f);
return 0;
}