Question: Question 2 [ 2 5 marks ] Write a program that allows the user to enter integers between - 5 0 and 5 0 until
Question marks
Write a program that allows the user to enter integers between and until a sentinel value of is read, which will stop the input process. The program should use different variables to count each category. The categories are the total number of integers entered, the number of negative integers, the number of positive integers, the number of integers outside the range to the number of odd integers, and the number of even integers. Display all the counts with descriptive text labels.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
