Consider the following program. Modify the code to use a Scanner to prompt the user for the

Question:

Consider the following program. Modify the code to use a Scanner to prompt the user for the values of low and high .

public class SumNumbers { public static void main (String[] args) { 3. int low = 1; 4 int high = 1000; int sum = 0; 6. for (int i = low; i

Below is a sample execution in which the user asks for the sum of the values 1 through 10:

low? 1

high? 10

sum = 55

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: