Cod sursa(job #1431257)

Utilizator Zaharia_Constantin_Daniel_322CBZaharia Constantin Daniel Zaharia_Constantin_Daniel_322CB Data 9 mai 2015 08:30:48
Problema A+B Scor 100
Compilator c Status done
Runda Arhiva de probleme Marime 0.3 kb
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char const *argv[])
{
	FILE *f = fopen("adunare.in", "rt");
	FILE *g = fopen("adunare.out", "wt");

	long a, b;
	if (fscanf(f, "%ld %ld", &a, &b) < 0)
		fprintf(g, "Eroare.\n");
	fprintf(g, "%ld", a + b);

	//close(f);
	//close(g);
	return 0;
}