Write a loop that reads positive integers from console input, printing out those values that are greater than 100, and that terminates when it reads an integer that is not positive. The printed values should be separated by single blank spaces. Declare any variables that are needed.

PHOTO EMBED

Fri Sep 22 2023 20:39:36 GMT+0000 (Coordinated Universal Time)

Saved by @David_Mix

int x;
cin >> x;
while (x > 0) 
{
  if (x > 100)
    cout << x << " ";
  cin >> x;
}
content_copyCOPY