Hey All,
I'm struggling with p 121 just like our original inquirer. It's the same code as above. I've figured them all out except for the insertion code: "x = x + 0"
Obviously I'm getting to know the nature of "break;". I also appreciate that there's a philosophy that says don't use breaks in loops. But I'm learning a lot from this problem anyway.
..........0...............1..................2
.....4...3...2......4...3...2......4...3...2
x...3...6...........3...6...........3...6....
y...28.26.........22.20.........16.14....
.........24.............18..............12.........
I include the last line here because the inner loop breaks at 2nd iteration of inner loop, bringing me to "y=y-2" in the outer loop.
I keep ending with x=6, y=12
The book says it should be x=6, y=14
life is green
Ryan