From 73bc07c2cd7f30fa0ad6fd7b0a1b15993ef13d25 Mon Sep 17 00:00:00 2001
From: slam <204929693+vailenz@users.noreply.github.com>
Date: Thu, 27 Mar 2025 19:02:43 +0300
Subject: [PATCH] Create main.py

Hello, This is a simple BMI calculator and I'd be happy if you can put it in your simple projects
---
 BMI calculator/main.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 BMI calculator/main.py

diff --git a/BMI calculator/main.py b/BMI calculator/main.py
new file mode 100644
index 00000000..fd70b214
--- /dev/null
+++ b/BMI calculator/main.py	
@@ -0,0 +1,18 @@
+# Hello, this is a BMI calculator
+
+#we're taking the input from user
+weight = float(input("Please enter your weight (kg): "))
+height = float(input("Please enter your height (m): "))
+
+#formula to get the bmi
+bmi = weight / height ** 2
+
+#now checking the bmi
+if bmi < 18.5:
+    print("You're underweight!")
+elif 18.5 <= bmi <= 24.9:
+    print("Your weight is normal!")
+elif 25 <= bmi <= 29.9:
+    print("You're overweight")
+else:
+    print("You're obese")
\ No newline at end of file