Cod sursa(job #197564)
| Utilizator | Data | 5 iulie 2008 01:56:27 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.19 kb |
#include <stdio.h>
void main()
{
long int a,b;
FILE *f;
f=fopen("adunare.in","r");
fscanf(f,"%d%d",&a,&b);
fclose(f);
f=fopen("adunare.out","w");
fprintf(f,"%d",a+b);
fclose(f);
}
