Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions multiplication_table.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
um1 = int(input("Enter the base number for the table: "))
num2 = int(input("Enter the comparison number: "))

for i in range(1, 999):
table_value = num1 * i
print(f"{num1} x {i} = {table_value}")

if table_value >= num2:
print("found it")
break
else:
print("no match found")