Question: Lab 5 Write a program that will read positive integers. When the user enters a negative integer, the program should sum the entered integers, display
Lab 5 Write a program that will read positive integers. When the user enters a negative integer, the program should sum the entered integers, display the result, and terminate. E.g. your interaction with this program might look like this: Please enter an integer: 1 Please enter an integer: 5 Please enter an integer: 9 Please enter an integer: 5 Please enter an integer: -1 The sum of the positive integers you entered is 20 Hint: you will need a loop. Please submit both the "java file and the class file. No crecdit will be given if the *.class file is not submitted
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
