Ralph Cook wrote:x loops 10 times; for every time that x loops, y loops 10 times
so for x == 0, y goes from 0 to 9
x == 1, y goes from 0 to 9
etc.
therefore, the z++ executes 100 times.
rc
Aha. So I think I didn't get the first one then although I ended at the same number.
Am I right when I say that if by taking your explanation and applying that to the first one y already hits the 9 after the first go through from x and then remains that until x also reaches 9? After that it moves on to the z = x * y for the 81 output. Sure hope it does because then I get it now
I was (probably) mistankingly thinking that the loop stuck in the x until it hit 9 and only then moved on to the 2nd one until y hit 9 and then hit the z = x * y for the 81 output.
Sorry to have to ask again, guess I'm not the sharpest tool in the shed.
But I figure that being afraid to ask on until you completely get it is even less smart.