Cod sursa(job #585121)
Utilizator | Data | 27 aprilie 2011 23:50:47 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include<fstream>
#include<iostream>
using namespace std;
int main()
{
FILE*d=fopen("adunare.in","r");
FILE*o=fopen("adunare.out","w");
long a;long b;
fscanf(d,"%d",&a);
fscanf(d,"%d",&b);
fprintf(o,"%d",a+b);
fclose(o);
fclose(d);
return 0;
}