Cod sursa(job #1812894)
Utilizator | Data | 22 noiembrie 2016 15:32:24 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
// ab1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream f("adunare.in");
ofstream g("adunare.out");
int a,b,sum;
f >> a >> b;
f.close();
sum = a + b;
g << sum;
g.close();
cout << a + b;
return 0;
}