Question: 2. [10 marks] Write a Java program using do-while loop statement that prompts the user to enter the last integer number in a range to
2. [10 marks] Write a Java program using do-while loop statement that prompts the user to enter the last integer number in a range to calculate sum and product of even numbers starting from 2. Sample run 1: Sample run 2: Enter the ending number The sum is: 56 The product is : 645120 Enter the ending number 10 The sum is:30 15 The product is:3840
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
