Cod sursa(job #571106)

Utilizator dmgciubotaruCiubotaru Gabriel dmgciubotaru Data 4 aprilie 2011 02:08:16
Problema A+B Scor 100
Compilator c Status done
Runda Arhiva de probleme Marime 0.2 kb
#include "stdio.h"

int main()
{
	FILE *f;
	long int x,y,z;
	f = fopen("adunare.in","r");
	fscanf(f,"%ld%ld",&x,&y);
	fclose(f);
	z=x+y;
	f = fopen("adunare.out","w");
	fprintf(f,"%ld",z);
	fclose(f);
}