1int main() {
2int sum = 0;
3cout << "enter number" << endl;
4int i = 0;
5while (true) {
6 cin >> i;
7 sum += i;
8 //cout << i << endl;
9 if (cin.peek() == '\n') {
10 break;
11 }
12
13}
14
15cout << "result: " << sum << endl;
16return 0;
17}
18