From 15931857032ff68337d8c161354f2111aad4d491 Mon Sep 17 00:00:00 2001 From: Sai Kiran Date: Wed, 5 Apr 2023 23:28:10 +0530 Subject: [PATCH] Add the Multiplication Table program in Python folder --- Python/Saikiran-MultiplicationTable.py | 9 +++++++++ Python/multiplication_table.py | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 Python/Saikiran-MultiplicationTable.py create mode 100644 Python/multiplication_table.py diff --git a/Python/Saikiran-MultiplicationTable.py b/Python/Saikiran-MultiplicationTable.py new file mode 100644 index 0000000..be9654e --- /dev/null +++ b/Python/Saikiran-MultiplicationTable.py @@ -0,0 +1,9 @@ +def table (n: int): + for i in range (1,11): + print (n,"x",i,"=",(n*i)) + +def main(): + number = int(input("Enter a no. between 1 to 10: ")) + table(number) + +main() \ No newline at end of file diff --git a/Python/multiplication_table.py b/Python/multiplication_table.py new file mode 100644 index 0000000..be9654e --- /dev/null +++ b/Python/multiplication_table.py @@ -0,0 +1,9 @@ +def table (n: int): + for i in range (1,11): + print (n,"x",i,"=",(n*i)) + +def main(): + number = int(input("Enter a no. between 1 to 10: ")) + table(number) + +main() \ No newline at end of file