Write a Java program that calculates the sum of 5 positive numbers entered by the user. If
Fantastic news! We've Found the answer you've been seeking!
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, it is skipped from the calculation. You need to use FOR LOOP & IF Statement.
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: