Cod sursa(job #1727877)
Utilizator | Data | 11 iulie 2016 20:03:14 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.23 kb |
#include <iostream>
using namespace std;
int main()
{
int s=0;
ifstream f("adunare.in");
while (!f.eof()){
f>>x;
s+=x;
}
f.close();
cout<<"Suma este:"<<s<<endl;
return 0;
}