Cod sursa(job #1939099)
Utilizator | Data | 25 martie 2017 14:15:02 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | c | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *f=fopen("adunain.txt","r");
FILE *g=fopen("adunaout.txt","w");
int a ,b;
fscanf(f,"%d",&a);
fscanf(f,"%d",&b);
fprintf(g,"%d",a+b);
fclose(f);
fclose(g);
return 0;
}