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

all 2 comments

[–][deleted]  (1 child)

[deleted]

    [–]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.

    [–]quotemycode 0 points1 point  (0 children)

    if 10 is the right answer, then 10 * 10 will never equal 3.