Skip to content

Commit 65bf761

Browse files
Merge pull request prathimacode-hub#1057 from Rahuls66/mult-table
Script for Multiplication Table Generator
2 parents 2c90ca6 + 39ad2c4 commit 65bf761

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed
5.37 KB
Loading
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def table (num):
2+
for mult in range(1,11):
3+
print(str(num) + " X " + str(mult) + " = " + str(num * mult))
4+
mult += 1
5+
6+
count = int(input("Enter the number for which you want table: "))
7+
table(count)
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Multiplication Table
2+
3+
## Aim
4+
5+
The aim of this script is to produce Multiplication Table for a given Number.
6+
7+
8+
## Purpose
9+
10+
Using this script would help user get any Multiplication Table based on the input given, formatted in a easy and readable way.
11+
12+
13+
## Short description of package/script
14+
15+
- No additional packages are imported or used.
16+
17+
18+
## Workflow of the Project
19+
20+
- User is required to input the number for which Multiplication Table needed to be produced.
21+
- The function then prints the Multiplication Table for the input number.
22+
23+
24+
## Setup instructions
25+
26+
- Make sure you have Python installed in your machine.
27+
- Need Command Prompt with current working direcitry set to the location where `Multiplication_Table_Generator.py` is present OR any other IDE.
28+
29+
30+
## Compilation Steps
31+
32+
- The script can be started by running the `Multiplication_Table_Generator.py` file.
33+
34+
35+
## Output
36+
37+
- Displays Multiplication Table for the given Number.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This script does not require any addtional installation requirements.

0 commit comments

Comments
 (0)