Cod sursa(job #981341)

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

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