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:….
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-47759.pdf
Comments
Leave a comment