Cod sursa(job #838398)

Utilizator arhimondeZaharia Raul arhimonde Data 19 decembrie 2012 16:16:11
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.31 kb
#include <iostream>
#include <fstream>
using namespace std;
int a,b;
fstream g,f;
int main()
{
    f.open("adunare.in",ios::in);
    g.open("adunare.out",ios::out);
    f>>a>>b;
    if (a+b<=2000000000)
    g<<"suma celor 2 numere "<<a<<" + "<<b<<" "<<a+b;
    g.close();
    f.close();
    return 0;
}