Search:

Type: Posts; User: Skybear

Search: Search took 0.20 seconds.

  1. Replies
    5
    Views
    1,560

    Re: Why does this work?

    Of course! Good explanation. I see now that what I was doing was that after i increased to 2, I was reading j = i, when I should have read j<=i, which in essence resets j back to 1 and allows it to...
  2. Replies
    5
    Views
    1,560

    Re: Why does this work?

    Oh yes, I understand the difference between print() and println(). But I don't see how there should be 20 asterisks. For example, initially the i=1, so j=1, one asterisk gets printed, and the println...
  3. Replies
    5
    Views
    1,560

    Why does this work?

    I understand how loops and nested loops work. But in the code below, I don't see why one * is printed on the first line, two on the second, etc., instead of just a column of *'s. I'm probably missing...
Results 1 to 3 of 3