WRITE PROGRAM IN PYTHON
WAP to print table of any number entered by user.
Answers
Answered by
2
In Python, you can make a program to display the multiplication table of any number. Python Program to Display the multiplication Table num = int(input("Show the multiplication table of? "))
num = int(input("Show the multiplication table of? "))# using using for loop to iterate multiplication 10 times. for i in range(1,11 print(num,'x',i,'=',num*i)
Answered by
0
Question: WAP to print table of any number entered by user.
Answer:
n=int(input("Enter your number :"))
for i in range (1,11):
print(n,"x",i,"=",n*i)
Enter your number :10
10 x 1 = 10
10 x 2 = 20
10 x 3 = 30
10 x 4 = 40
10 x 5 = 50
10 x 6 = 60
10 x 7 = 70
10 x 8 = 80
10 x 9 = 90
10 x 10 = 100
✨
Attachments:
Similar questions