Book exercises dec challenge 2012

getting wrong answer continously. i think the code is right. please help finding mistake in the code below:

[code removed]

If you are expecting for help in the middle of a contest…I just don’t see it coming. Try to find the bug yourself. If you can’t, just wait for 2 more days and somebody may help you :wink: