Cod sursa(job #942492)

Utilizator marklarVasile Ion marklar Data 22 aprilie 2013 19:24:20
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.24 kb
#include <stdio.h>

int main(void)
{
	unsigned long int a,b,c;
	FILE *f1,*f2;
	f1=fopen("adunare.in.txt","r");
	f2=fopen("adunare.out.txt","w");
	while(!feof(f1))
	{
		fscanf(f1,"%d %d",&a,&b);
		c=a+b;
		fprintf(f2,"%d\n",c);
	}

}