Cod sursa(job #244230)

Utilizator madmanjonesJones the one madmanjones Data 14 ianuarie 2009 18:48:07
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.38 kb
#include <stdio.h>
#include <time.h>
long int a,b;


FILE * in, *out;
/*
void wait(int sec)
{
	clock_t end;
	end=clock()+sec*CLOCKS_PER_SEC;
	while (clock()<end){}
}
 */
int main()
{
    in=fopen("adunare","r");
    fscanf(in,"%ld%ld",&a,&b);
    fclose(in);
    //wait(10);
    out=fopen("adunare","w");
    fprintf(out,"%ld", a+b);
    fclose(out);
return 0;
}