Cod sursa(job #439122)
Utilizator | Data | 11 aprilie 2010 13:16:18 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | c | Status | done |
Runda | teme_upb | Marime | 0.21 kb |
#include<stdio.h>
int main(){
int a, b, s;
FILE *fd, *fi;
fd=fopen("adunare.in","r");
fscanf(fd,"%d%d", &a, &b);
fclose(fd);
s=a+b;
fi=fopen("adunare.out","w");
fprintf(fi,"%d\n",s);
fclose(fi);
return 0;
}