Question: a java program that asks the user to enter a series of integers. When they enter a value of 0, the program should end. If

a java program that asks the user to enter a series of integers. When they enter a value of 0, the program should end. If they enter a negative value, ignore it. If they enter a positive value, add it up. At the end of the program display how many numbers they entered, how many were positive and what the sum of all the positive numbers was.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!