Programming puzzles

These are 8 programming puzzles to make you scratch your bonces and enable you to improve your programming skills while having a bit of fun.

Please note : I have not written any of these tests, they are the work of others - I have just placed them here as a handy place to have them...