Question: Write a java program that asks the user to enter a series of integers. When they enter a value of 0, the program should end.
Write 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. Include comments.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
