Cod sursa(job #120637)
Utilizator | Data | 6 ianuarie 2008 01:08:36 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include<iostream.h>
#include<string.h>
#include<stdio.h>
FILE *f,*g;
int main ()
{
long a,b,s;
f=fopen("adunare.in","r");
fscanf(f,"%ld \n%ld",&a,&b);
fclose (f);
s=a+b;
g=fopen("adunare.out","w");
fprintf(g,"%ld",s);
fclose(g);
return 0;
}