Question #47759

Write a complete program that reads at most 30 positive integer values, or it will stops reading if the user enters -9999
If the user enters a negative number, the number should not be accepted and he should have the chance to re-enter the number again.
After you stop reading integers from keyboard, the program should be successfully calculate and print the following:
The number of integers between 0 & 200 is: …
The number of integers between 200 & 500 is:….
The number of integers above 500 is:…
The number of primes is:….
The maximum prime number entered is:
The maximum number among all integers is:….

Expert's answer

## Comments

## Leave a comment