def generate_tables(start, end):
for num in range(start, end+1):
print(f"Table for {num}:")
for i in range(1, 11):
print(f"{num} x {i} = {num*i}")
print()
# Test the function
start = int(input("Enter the starting tabel number of tables: "))
end = int(input("Enter the last table number of tables: "))
generate_tables(start, end)
print("Thanks!for using Table Generator")
How to create Multiplication Table Generator using Python
Here is the program that will generate tables for a range of numbers that the user specifies:
This program will generate tables for all numbers between start and end (inclusive). For each number, it will print a table with the products of that number and the integers from 1 to 10.
