Cod sursa(job #419795)
Utilizator | Data | 17 martie 2010 23:44:53 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <stdio.h>
#include <stdlib.h>
void main()
{
FILE* f1;
FILE* f2;
f1=(fopen("adunare.in","r"));
long int a,b;
fscanf(f1,"%d%d",a,b);
f2=(fopen("adunare.out","w"));
fprintf(f2,"%d",a+b);
}