lucy24 - 8:02 am on Apr 5, 2013 (gmt 0)
I had to force quit the browser after fixing enough syntax errors to make it run, but not enough to keep it from going into perpetual motion.
I make it two fatal syntax errors, one structural error resulting in perpetual motion, plus one structural error that makes it give unintended output even when everything else works.
Anyway, you don't have to go up to n. You only need to go to
:: detour here to look up exact wording ::
or Math.ceil depending on whether you prefer < or <=
Hee. This is just the kind of problem I would post myself, prefaced by shamefaced admission that if anyone else had asked the identical question, I would see the answer in an instant :)