Cod sursa(job #177151)

Utilizator the.phoenixMihaescu Tiberiu Ioan the.phoenix Data 12 aprilie 2008 13:20:44
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.22 kb
#include<fstream.h>
#include<stdio.h>
int main()
{FILE *f,*g;
f=fopen("adunare.in", "r");
g=fopen("adunare.out", "w");
long a,b;
fscanf(f, "%ld%ld",&a,&b);
fprintf(g, "%ld",a+b);
fclose(f);
fclose(g);
return 0;
}