Cod sursa(job #1430875)

Utilizator Caplescu_Oana_323CCOana Caplescu Caplescu_Oana_323CC Data 8 mai 2015 21:39:33
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.61 kb
// [PA]TEST_Practic.cpp : Defines the entry point for the console application.
//

//#include "stdafx.h"
//#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	/*char str[20];
	int timer = 15;*/

	/* convert int to char */
	/*sprintf_s(str, "%d", timer);
	cout << str << endl;*/


	//int N, M;
	int a, b;
	ifstream read("adunare.in");
	read >> a >> b;
	read.close();
	
	int suma = a + b;
	ofstream write("adunare.out");
	write << suma;
	write.close();
	return 0;
}