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...
Type: Posts; User: Skybear
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...
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...
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...