Python program that wont terminate
<p>I'm running the following code from the command line (python filename.py) and it wont terminate. I've tried the code outside of a procedure and have tried the procedure in an online interpreter, so I don't think it's the the algorithm. What am I doing wrong?</p>

<pre><code>    n = raw_input("Enter a number: ")

    def print_multiplication_table(n):

        x = 1

        while x &lt;= n:
            y = 1
            while y &lt;= n:
                z = x * y
                print x, " * ", y, " = ", z
                y += 1
            x += 1

    print_multiplication_table(n)
</code></pre>
