Cod sursa(job #1666095)

Utilizator iudean.bogdanIudean Bogdan iudean.bogdan Data 27 martie 2016 17:45:53
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.39 kb
// A + B 
// Read two numbers from the file "adunare.in" and
// save their sum in the file "adunare.out"

#include <fstream>

int main()
{
	long int a,b;
		//open files
	ifstream fileIn("adunare.in");
	ofstream fileOut("adunare.out");
		// get numbers
	fileIn >> a;
	fileIn >> b;
		// place sum
	fileOut<< a + b;
		// close files
	fileIn.close();
	fileOut.close();

	return 0;
}