Cod sursa(job #245565)

Utilizator Andrei.boloBolovan Andrei Daniel Andrei.bolo Data 18 ianuarie 2009 12:08:44
Problema A+B Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 kb
#include <fstream.h>
#include <iostream.h>
fstream f ("adunare.in",ios::in);
fstream g ("adunare.out",ios::out);
int main ()
{

    long a,b,s;
    f>>a; f>>b;
    s=a+b;
    g<<s;
    f.close();
    g.close();
    return 0;
}