Cod sursa(job #3163792)

Utilizator romeo37Romeo Popescu romeo37 Data 1 noiembrie 2023 09:41:30
Problema A+B Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.26 kb
#include <iostream>
#include <fstream>

using namespace std;

int main()
{
    ifstream f("adunare.in");

    int s = 0, nr;

    while (f >> nr)
    {
        s =+ nr;
    }

    ofstream g("adunare.out");

    g << s;

    f.close();
    g.close();

    return 0;
}