Could somebody give me an example of a logic error - perhaps if you have time to waste, write a small piece of code so I could try to track it down? (Pretty please)

many thanks