Cod sursa(job #34941)

Utilizator n_lichkingSentes Norbert n_lichking Data 21 martie 2007 17:47:10
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.21 kb

#include<stdio.h>
long a,b;
FILE *f=fopen("adunare.in","r");
FILE *g=fopen("adunare.out","w");

int main()
{ fscanf(f,"%ld",&a);
 fscanf(f,"%ld",&b);
 fprintf(g,"%ld",a+b);
 fcloseall();
return 0;

}