Darren New wrote:
> The pendant in me wants to have an actual condition as the argument to
> "while". :-) Or at least
>
> do {
> ....
> } while (number != target);
Yeah - although that would require "number" to be declared outside the
while loop so that it actually exists. ;-) More subtly, it would have to
be initialised to a value that is guaranteed to not equal "target". Ooo,
*that* could be a nasty bug to try to find...!
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|