Cod sursa(job #838397)

Utilizator arhimondeZaharia Raul arhimonde Data 19 decembrie 2012 16:08:38
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.29 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;
    g<<"suma celor 2 numere "<<a<<" + "<<b<<" "<<a+b;
    g.close();
    f.close();
    return 0;
}