Cod sursa(job #435338)
Utilizator | Data | 7 aprilie 2010 12:21:00 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | c | Status | done |
Runda | teme_upb | Marime | 0.2 kb |
#include <stdio.h>
int main(){
int a,b;
FILE *f,*g;
f = fopen("adunare.in", "r");
g = fopen("adunare.out", "w");
fscanf(f,"%d %d",&a, &b);
fprintf(g, "%d", a + b);
fclose(f);
fclose(g);
return 0;
}