Cod sursa(job #1430786)
Utilizator | Data | 8 mai 2015 20:06:45 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <stdio.h>
int main() {
FILE *fp = fopen("adunare.in", "r");
FILE *fw = fopen("adunare.out", "w");
int a,b,s;
fscanf(fp,"%d", &a);
fscanf(fp,"%d", &b);
fclose(fp);
s = a+b;
fprintf(fp, "%d", s);
fclose(fw);
return 0;
}