Cod sursa(job #1190547)

Utilizator itm_gheorghita_nicoletaAsert Ma itm_gheorghita_nicoleta Data 25 mai 2014 14:29:33
Problema A+B Scor 0
Compilator cpp Status done
Runda itmarathon Marime 0.32 kb
#include <iostream>
#include<fstream>
using namespace std;
int main()
{
    long a, b, s;
    ifstream f;
    f.open("adunare.in.txt", ifstream::in);
    ofstream g;
    g.open("adunare.out.txt", ofstream::out);
    f>>a;
    f>>b;
    s=a+b;
    g<<s;
    f.close();
    g.close();
    return 0;


}