Cod sursa(job #973752)

Utilizator pakaPopescu Alexandru paka Data 15 iulie 2013 14:24:27
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.26 kb
#include <iostream>
#include <fstream>
using namespace std;
ifstream f("adunare.in");
ofstream g("adunare.out");
int sum(int a, int b)
{
    return a+b;
}
int a,b;
int main()
{
    f>>a>>b;
    g<<sum(a,b);
    f.close();
    g.close();
    return 0;
}