Cod sursa(job #981337)

Utilizator nicolascelmaNicholas Smith nicolascelma Data 6 august 2013 19:10:15
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.21 kb
#include <fstream>
using namespace std;
int calc(int a,int b)
{
return a+b;
}

int main()
{
int n,m;
ifstream f("adunare.in");
ofstream g("adunare.out");
f>>n;
f>>m;
calc(n,m);
f.close();
g.close();
}