the output of this code below is not what one would expect, it outputs
all kind of numbers and it never stops, I want to ask the user for a
number and then print out the multiplication table up to that number.
thanks
*************** *************** *************** *************** ****
import math
def printMultiples( n, hight):
i = 1
while i <= hight:
print n*i, '\t',
i = i + 1
def printMultTable( hight):
i = 1
while i <= hight:
printMultiples( i, i)
i = i + 1
num = raw_input ("produce a multiplication table up to: ")
printMultTable( num)
*************** *************** *************** *************** ****
Comment