InterviewSolution
Saved Bookmarks
| 1. |
Write a program to display multiplication table for a given number? |
|
Answer» Multiplication table num = int (input(“Enter the number : “)) print (“multiplication Table of “ , num) for i in range(1, 11): print (num, “x” , i, ” = ” , num*i) Output: Enter the number: 6 Multiplication Table of 6 6 × 1 = 6 6 × 2 = 12 6 × 3 = 18 6 × 4 = 24 6 × 5 = 30 6 × 6 = 36 6 × 7 = 42 6 × 8 = 48 6 × 9 = 54 6 × 10 = 60 |
|