Cod sursa(job #903709)
Utilizator | Data | 2 martie 2013 17:11:53 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include<stdio.h>
using namespace std;
int main()
{
long int a,b;
FILE*f=fopen("","r");
FILE*g=fopen("","w");
fscanf(f,"%d",&a);
fscanf(f,"%d",&b);
fprintf(g,"%d",(a+b));
fclose(f);
fclose(g);
return 0;
}