Cod sursa(job #1246310)

Utilizator alinstan1Alin Stan alinstan1 Data 20 octombrie 2014 22:04:34
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.35 kb
// A + B.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <fstream>
#include <iostream>
using namespace std;


int _tmain(int argc, _TCHAR* argv[])
{
	ifstream f; ofstream g;
	int a,b;
	f.open("adunare.in");
	f>>a>>b;
	f.close();
	g.open("adunare.out");
	g<<a+b;
	g.close();
	return 0;
}