Computer Science, asked by ayesha2061123, 3 months ago

write a python program to print the multiplication table of 4

Answers

Answered by SURYANSHKUMAR05
2

Answer:

To understand this example, you should have the knowledge of the following Python programming topics:

Python for Loop

Python Input, Output and Import

Answered by lilidey81
9

Answer:

# Multiplication table (from 1 to 10) in Python

num = 12

# 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, 11):

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

Output

12 x 1 = 12

12 x 2 = 24

12 x 3 = 36

12 x 4 = 48

12 x 5 = 60

12 x 6 = 72

12 x 7 = 84

12 x 8 = 96

12 x 9 = 108

12 x 10 = 120

Similar questions