Computer Science, asked by khushikopulwar, 4 months ago

WAP in python to display the table of 9

Answers

Answered by at8620280
0

Answer:

Multiplication table (from 1 to 10) in Python

num = 9

# To take input from the user

# num = int(input("Display multiplication table of? "))

# Iterate 10 times from i = 1 to 10

for i in range(1, 10):

print(num, 'x', i, '=', num*i)

Output

9x 1 = 9

9 x 2 = 18

9x 3 = 27

9x 4 = 36

9x 5 = 45

9x 6 = 54

9x 7 = 63

9x 8 = 72

9x 9 = 81

9x 10 = 90

Answered by harshvirsing55
18

Question: WAP in python to display the table of 9.

Answer:

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

n=9

for i in range (1,11):

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

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

9 x 1 = 9

9 x 2 = 18

9 x 3 = 27

9 x 4 = 36

9 x 5 = 45

9 x 6 = 54

9 x 7 = 63

9 x 8 = 72

9 x 9 = 81

9 x 10 = 90

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

Attachments:
Similar questions