Pagini recente » Cod sursa (job #2916344) | Cod sursa (job #550872) | Cod sursa (job #2090994) | Cod sursa (job #1809490) | Cod sursa (job #1430877)
// [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 main(int argc, char* 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;
}