I dropped in on a database forum and they were having a puzzle solving contest, and it looked like a lot of fun, so I thought I’d start something here.
Hopefully, these puzzles will give us a springboard from which we can discuss, teach, learn, and benefit from each other's experience.
It appears that the idea is to show new users how to code using PureBasic.
The puzzles need not be difficult to solve, but show loops, methods, etc.
Thanks to: "Creative Computing Magazine" for this puzzle.
Hopefully we can keep this going with more puzzles showing Pure coding.
Puzzle #1
Instructions:
a) Your solution must use the statement: EnableExplicit
b) Your code needs to be well commented.
c) Use MessageRequester to display your results.
-------------------------------------------------
A fly and a mosquito start together to circle a building.
The fly circles the building in six minutes, while
the mosquito circles the building in four. If they keep
flying at the same rate, how many minutes will elapse
before the mosquito passes the fly?
--------------------------------------------------
Let's see some solutions....
