Computer Science, asked by emaduddinahmed42829, 7 months ago

Write a Python program to print the multiplication table from 2 to 10.

Answers

Answered by Anonymous
2

Answer:

Python Program to Display the multiplication Table

num = int(input("Show the multiplication table of? "))

# using for loop to iterate multiplication 10 times.

for i in range(1,11):

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

Answered by Bᴇʏᴏɴᴅᴇʀ
18

Answer:-

• Python Program to print the multiplication table from 2 to 10.

\red{\bigstar}

\underline\orange{CODE:-}

# Python Program to Print Multiplication Table

num = int(input("Enter any Positive number less than 10 :: "))

print(" Multiplication Table ")

for i in range(num, 10):

for j in range(1, 11):

print('{0} * {1} = {2}'.format(i, j, i*j))

print(' ')

# Output :- Refer to the Attachment.

In Output,

Input Integer is 7

# Enter any Positive Integer to get the Multiplication Table of that Integer to the table of 10

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Explanation:-

• This Program allows to enter any integer value less than 10.

• Prints the function inside the For loop

• It prints the multiplication table from the User inputted value to the table of 10.

Attachments:
Similar questions