Cod sursa(job #1902805)
Utilizator | Data | 4 martie 2017 20:01:08 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <stdio.h>
int main(){
FILE* fd = fopen("adunare.in","r");
int a,b;
fscanf(fd,"%d\n",&a);
fscanf(fd,"%d",&b);
fclose(fd);
fd = fopen("adunare.out","w");
fprintf(fd,"%d",a+b);
fclose(fd);
return 0;
}