Answers for "how to print tables using python"

1

how to print tables using python

please subscribe my channel - https://bit.ly/2Me2CfB

t = int(input("ENTER THE NUMBER : "))
for i in range(1, 11):
  b  = t * i
  print(f"{t} x {i} = {b}")
Posted by: Guest on July-10-2021
1

how to print tables using python

please subscribe my channel - https://bit.ly/2Me2CfB

t = int(input("ENTER THE NUMBER : "))
n = int(input(f"HOW MUCH TIMES DO YOU WANT TO MULTIPLY '{t}' : "))
for i in range(1, (n + 1)):
  b  = t * i
  print(f"{t} x {i} = {b}")
Posted by: Guest on July-10-2021
-2

print tables in python

# 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)
Posted by: Guest on May-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language