This was the assignment: If the first parameter is less than the second parameter add the two and print the result 10 times. THIS PROGRAM IS IN JAVA.

I did everything but I can't figure out how to print the result as a loop 10 times.

public static void main(String args[])

{
int x1;int x2;
x1=5;
x2=8;
if (x1<x2)
System.out.println(x1+x2);
}

}

How would I print the result as a loop ten times?

1 answer

http://www.jiskha.com/display.cgi?id=1436026108
Similar Questions
  1. How do we generally alter the parameter to get to the base case?(1 point)Responses adding one to the parameter adding one to the
    1. answers icon 1 answer
  2. How do we generally alter the parameter to get to the base case?(1 point)Responses setting the parameter to zero setting the
    1. answers icon 1 answer
  3. How do we generally alter the parameter to get to the base case?(1 point)Responses adding one to the parameter adding one to the
    1. answers icon 1 answer
  4. How do we generally alter the parameter to get to the base case?(1 point)Responses setting the parameter to zero setting the
    1. answers icon 1 answer
more similar questions