Search:

Type: Posts; User: angstrem

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    1,565

    Re: Help with nested loops. So confusing.

    You're welcome!
    No matter what you put into the for loop, it will be looped for specified number of times (or before specified condition). So, yes, second for loop will be executed 10 times for each...
  2. Replies
    3
    Views
    1,565

    Re: Help with nested loops. So confusing.

    1)


    int product = r * c;
    if (product < 10) {
    System.out.print(" " + product + " ");
    } else {
    System.out.print(product + " ");
    }
Results 1 to 2 of 2