Cod sursa(job #577749)
| Utilizator | Data | 10 aprilie 2011 16:01:41 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.24 kb |
#include <fstream>
using namespace std;
int main()
{
int n; float t=0; ifstream i("adunare.in"); ofstream o("adunare.out");
while (!i.eof())
{
i>>n;
t+=n;
}
i.close();
o<<t;
o.close();
return 0;
}
