Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <cstdlib>
- using namespace std;
- int main() {
- int buffer = 0;
- vector<int> wektor;
- while (cin >> buffer)
- {
- wektor.push_back(buffer);
- }
- int a = 0;
- for (int i = 0; i < wektor.size(); i++)
- {
- a += wektor[i];
- cout << a << endl;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment