Question;
Write a program to print the multiplication table of a number
Program:
1 2 3 |
num = int(input("Display multiplication table of: ")) for i in range(1,11): print(num,'x',i,'=',num*i) |
1 2 3 4 5 6 7 8 9 10 11 |
Display multiplication table of: 17 17 x 1 = 17 17 x 2 = 34 17 x 3 = 51 17 x 4 = 68 17 x 5 = 85 17 x 6 = 102 17 x 7 = 119 17 x 8 = 136 17 x 9 = 153 17 x 10 = 170 |
Leave a Reply