Cod sursa(job #1071357)
Utilizator | Data | 2 ianuarie 2014 22:11:57 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <stdio.h>
using namespace std;
int main()
{
FILE *f;
int a,b;
f = fopen("adunare.in","rt");
fscanf(f,"%d%d",&a,&b);
fclose(f);
f = fopen("adunare.out","wt");
fprintf(f,"%d",a+b);
fclose(f);
return 0;
}