Skip to content

Commit 3d02a3c

Browse files
Added BMI calculator
1 parent 8b652a6 commit 3d02a3c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

BMI.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Height=float(input("Enter your height in centimeters: "))
2+
Weight=float(input("Enter your Weight in Kg: "))
3+
Height = Height/100
4+
BMI=Weight/(Height*Height)
5+
print("your Body Mass Index is: ",BMI)
6+
if(BMI>0):
7+
if(BMI<=16):
8+
print("you are severely underweight")
9+
elif(BMI<=18.5):
10+
print("you are underweight")
11+
elif(BMI<=25):
12+
print("you are Healthy")
13+
elif(BMI<=30):
14+
print("you are overweight")
15+
else: print("you are severely overweight")
16+
else:("enter valid details")

0 commit comments

Comments
 (0)