Tuesday, 6 November 2012

Get length From User And Print Table using For Loop?



num=input('Enter Number For Table: ')
length=input('Enter Length of Table: ')
length=length+1
for i in range (1,length):
    print num,'*',i,'=',num*i

No comments:

Post a Comment