Question: Write a Java program that calculates the sum of 5 positive numbers entered by the user. If the user enters a negative number or zero,
Write a Java program that calculates the sum of 5 positive numbers entered by the user. If the user enters a negative number or zero, it is skipped from the calculation. You need to use FOR LOOP & IF Statement.
Step by Step Solution
There are 3 Steps involved in it
Heres a Java program that calculates the sum of 5 positive numbers entered by the ... View full answer
Get step-by-step solutions from verified subject matter experts
