Skip to content

Commit 6dd344e

Browse files
BMI Calculator Project Files
1 parent 9234c19 commit 6dd344e

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

Bmi Calculator/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# **BMI Calculator Project**
2+
3+
**Description:**
4+
- A simple python project that calculates the body mass index based on users height and weights and returns value as a result.
5+
- Uses variables, input function, print function, typecasting.
6+
7+
**How To Run:**
8+
9+
```bash
10+
python main.py
11+
```
12+
13+
**Output ScreenShot**
14+
15+
- ![Output](./images/Output.png)
16+

Bmi Calculator/images/Output.png

11.1 KB
Loading

Bmi Calculator/main.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
height = float(input("Enter your height: "))
2+
weight = float(input("Enter your weight: "))
3+
4+
bmi = weight / height ** 2
5+
6+
print(f"Your Body Mass Index(BMI) is: {bmi:.2f}")

0 commit comments

Comments
 (0)