Cod sursa(job #2392822)

Utilizator SymphaBogdan Sympha Data 30 martie 2019 14:48:08
Problema A+B Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.35 kb
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
     int a,b,s;
   ifstream f("adunare.in");
   ofstream g("adunare.out");
   f>>a;
   cout<<"a="<<a<<endl;
   f>>b;
   cout<<"b="<<b<<endl;
   s=a+b;
   cout<<"Suma celor 2 numere este: "<<s;
   g<<s;
   f.close();
   g.close();
   return 0;
    return 0;
}