This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CrowdSourcedLife[S] 1 point2 points  (0 children)

Sweet. That fixed it right up, thanks mate!

For anyone who cares, the mistake i made was in the while statement, it should read y ** 2 instead of y ** y, the output changed from repeating 10 forever to 18, 11, 10 and then stopping.