Question: How can this be solved? Write a program that prompts the user to enter a series of positive integers ending with -999. The program should
How can this be solved?

Write a program that prompts the user to enter a series of positive integers ending with -999. The program should count and print how many numbers are in the following intervals [0, 100), [100, 1000) and greater than 1000. If the number is negative and other than -999 then it should be ignored. Sample input / output: ter a number-999 to stop: 1200 320 -146 87 516 845 1750 25 212 67-999 here are 3 numbers in the interval l0. 100 here are 4 numbers in the interval [100. 1000 here are 2 numbers greater than 180e
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
