Pagini recente » Cod sursa (job #146662) | Cod sursa (job #1114297) | Cod sursa (job #141457) | Diferente pentru utilizator/mr.dynamite intre reviziile 74 si 75 | 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;
}