Cod sursa(job #693340)
Utilizator | Data | 27 februarie 2012 11:48:49 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.27 kb |
#include<stdio.h>
#define InFile "adunare.in"
#define OutFile "adunare.out"
int main()
{long int a,b;
FILE * in = fopen ( InFile , "r" );
FILE * out = fopen ( OutFile , "w" );
fscanf(in,"%ld%ld",&a,&b);
fprintf(out,"%ld",a+b);
fclose(in);
fclose(out);
return 0;
}