Pagini recente » Cod sursa (job #1118975) | Cod sursa (job #1646499) | Cod sursa (job #1473954) | Cod sursa (job #1402538) | Cod sursa (job #1430875)
// [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;
}