Cod sursa(job #1220772)
Utilizator | Data | 18 august 2014 15:48:57 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Lista lui wefgef | Marime | 0.26 kb |
#include <stdio.h>
int main(){
int a, b;
FILE * f1, f2;
f1 = fopen ("adunare.in","r");
f2 = fopen ("adunare.out","w");
fscanf (f1, "%d", &a);
fscanf (f1, "%d", &b);
fprintf(f2,"%d\n", a+b);
fflush(stdout);
fclose(f1);
fclose(f2);
return 0;
}