Cod sursa(job #1510328)
Utilizator | Data | 24 octombrie 2015 20:37:39 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include <stdio.h>
#include <math.h>
#include <string.h>
int main(){
int a,b;
FILE *fp=fopen("adunare.in","r");
FILE *fq=fopen("adunare.out","w");
fscanf(fp,"%d",&a);
fscanf(fp,"%d",&b);
fprintf(fq,"%d",a+b);
fclose(fp);fclose(fq);
return 0;
}