Cod sursa(job #1371769)
Utilizator | Data | 4 martie 2015 01:58:49 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <iostream>
#include <fstream>
using namespace std;
int sum(int a, int b)
{
return a+b;
}
int main()
{
ifstream f1("adunare.in");
ofstream f2("adunare.out");
int a, b;
f1>>a>>b;
f2 << sum(a, b);
}