Cod sursa(job #1104177)
Utilizator | Data | 10 februarie 2014 15:45:10 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <stdio.h>
#include <conio.h>
#include <string.h>
int main()
{int s=0,a,b;
FILE *f=fopen("f","r");
FILE *g=fopen("g","w");
fscanf(f,"%d %d",&a,&b);
s=a+b;
fprintf(g,"%d",s);
getch();
fclose(f);
fclose(g);
return 0;
}