Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Multiplication Table Python

# Program: Multiplication Table in Python

# number
num = 5

# let's take a syntax for our table - num x (1 - 10) = num*(1-10)
# Since we're taking the table to 10, hence we'll iterate it 10 times

print("The multiplication table of ", num)
for i in range(1, 11):
    print(f" {num} x {i} = {num*i}")
Source by favtutor.com #
 
PREVIOUS NEXT
Tagged: #Multiplication #Table #Python
ADD COMMENT
Topic
Name
9+3 =