Cod sursa(job #120306)
Utilizator | Data | 4 ianuarie 2008 21:09:59 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include<iostream.h>
#include<string.h>
#include<stdio.h>
FILE *f,*g;
void 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);
}