Cod sursa(job #1773697)

Utilizator BogdanDariusshjghjsdhjgsjhskgdksjhsdjsf BogdanDarius Data 8 octombrie 2016 09:37:43
Problema A+B Scor 100
Compilator c Status done
Runda Arhiva de probleme Marime 0.29 kb
#include <stdio.h>
#include <stdlib.h>

int main()
{
	FILE *in,*out;
	int a,b;
	in = fopen("adunare.in", "r");
	if(!in)
	{
		printf("Fisierul nu a fost gasit!");
		exit(1);
	}
	out = fopen("adunare.out", "w");
	fscanf(in, "%d %d", &a, &b);
	fprintf(out, "%d", a+b);
	return 0;
}