Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: NEWBIE Brain Teaser

by spacewarp (Pilgrim)
on Apr 15, 2001 at 07:53 UTC ( #72636=note: print w/ replies, xml ) Need Help??

in reply to NEWBIE Brain Teaser

I think that the points about printing an explanation for the results are valid, but I would recommend taking it a step further. Since these teasers have a non-obvious result, I think people would also like to see code that does give the answer that was originally expected. In this case, for instance, how to modify the code so that it prints "1 2 3 4 5". After all, I'm sure we've all experienced the frustration of bugs in our logic; for a newbie the frustration would be worse.


Use of this advanced computing technology does not imply an endorsement
of Western industrial civilization.

Comment on Re: NEWBIE Brain Teaser

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://72636]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-11-29 17:02 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls