From 53b118519080c78d66ec7e41ac674e9fbc8a0c7b Mon Sep 17 00:00:00 2001 From: himanshu Date: Wed, 3 Dec 2025 20:56:05 +0530 Subject: [PATCH] Added code for multiplication table --- multiplication_table.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 multiplication_table.py diff --git a/multiplication_table.py b/multiplication_table.py new file mode 100644 index 0000000..52982d0 --- /dev/null +++ b/multiplication_table.py @@ -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") \ No newline at end of file