Cod sursa(job #1885924)
Utilizator | Data | 20 februarie 2017 15:43:03 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int adunare(int a, int b)
{
return a + b;
}
int main()
{
ifstream f("adunare.in");
ofstream q("adunare.out");
int a, b;
f >> a;
f >> b;
q << adunare(a, b);
f.close();
q.close();
}