Computer Science, asked by taha9749, 5 months ago

WRITE PROGRAM IN PYTHON
WAP to print table of any number entered by user.​

Answers

Answered by brainlystar6129
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 harshvirsing55
0

Question: WAP to print table of any number entered by user.​

Answer:

\red{\fbox{\tt PROGRAM IN PYTHON LANGUAGE}}

n=int(input("Enter your number :"))

for i in range (1,11):

   print(n,"x",i,"=",n*i)

\blue{\fbox{\tt O U T P U T}}

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

\orange{\tt Hope it will} \green{\tt help you.}

Attachments:
Similar questions