Cod sursa(job #2953051)

Utilizator Robert_AntohiRobert Antohi Robert_Antohi Data 10 decembrie 2022 13:25:52
Problema A+B Scor 100
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.23 kb
#include <iostream>
#include <fstream>
using namespace std;
int x,s;
ifstream f("adunare.in");
ofstream g("adunare.out");
int main()
{
    while(f>>x)
        s=s+x;
    g<<s;
    f.close();
    g.close();
    return 0;
}