Cod sursa(job #1517058)
Utilizator | Data | 3 noiembrie 2015 20:23:26 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <stdio.h>
using namespace std;
FILE *f,*g;
int main()
{
f=fopen("a+b.in","r");
g=fopen("a+b.out","w");
int a,b,s;
fscanf(f,"%d\n",&a);
fscanf(f,"%d",&b);
s=a+b;
fprintf(g,"%d",s);
fclose(f);
fclose(g);
}