// break.cpp Demonstration of the break statement
#include <iostream>
using namespace std;

int main() {

double s = 0, x;
cout << "Enter numbers, separated by blanks:\n";
cout << "They are added up as long as they are positive.\n\n";
for (;;) {
 cin >> x;
 if (x <= 0) break;
  s += x;
}
cout << "Sum of the positive numbers that have been read: " << s << endl;
return 0;
}
