Shinelin Samuel wrote:Try this one.
Anbarasu Aladiyan
anbarasu aladiyan wrote:Hi Steve Paj,
try like this
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Jelle Klap wrote:You could accomlish this using a while-loop and a labeled continue.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Jelle Klap wrote:Yeah, except for the labeled bit, that was a bit superflous I'm affraid.
Don't know why I even suggested it really, let's blame it on lack of caffeine and forget it ever happend...
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Jelle Klap wrote:Yeah, maybe you can compensate by trimming off some of the additional fat, the way I did in my edited post above ;)
Jelle Klap wrote:You could accomlish this using a while-loop and a continue.
Jesper Young wrote:I also don't like break, continue (especially with a label - that's an ugly goto in disguise) and infinite loops, but Campbell's code also looks a bit cryptic to me.
Jelle, the continue you have on line 10 is unnecessary.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.