Cod sursa(job #733217)
Utilizator | Data | 11 aprilie 2012 16:54:32 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.28 kb |
#include "stdio.h"
int main()
{
FILE *fin, *fout;
int a,b;
fin=fopen("adunare.in.txt","r");
fscanf(fin,"%d", &a);
fscanf(fin,"%d", &b);
fout=fopen("adunare.out.txt","w");
fprintf(fout,"%d", a+b);
fclose(fin);
fclose(fout);
return 0;
}