Cod sursa(job #1698282)

Utilizator andrei00Andrei andrei00 Data 4 mai 2016 00:59:21
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.22 kb
#include <stdio.h>

int main()
{
	FILE* file;
	file = fopen("adunare.in", "r");
	int a, b;
	fscanf(file, "%d\n%d", &a, &b);
	fclose(file);
	file = fopen("adunare.out", "w");
	fprintf(file, "%d", a + b);
	return 0;
}