Skip to content

Commit 97cf6cd

Browse files
Merge pull request seeditsolution#280 from abhiray310/patch-1
BMI CULCLATER
2 parents 61e19a5 + 1bdeb49 commit 97cf6cd

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

BMI CALCULATER

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
filter_none
2+
edit
3+
play_arrow
4+
5+
brightness_4
6+
#Python program to illustrate
7+
# how to calculate BMI
8+
def BMI(height, weight):
9+
bmi = weight/(height**2)
10+
return bmi
11+
12+
# Driver code
13+
height = 1.79832
14+
weight = 70
15+
16+
# calling the BMI function
17+
bmi = BMI(height, weight)
18+
print("The BMI is", format(bmi), "so ", end='')
19+
20+
# Conditions to find out BMI category
21+
if (bmi < 18.5):
22+
print("underweight")
23+
24+
elif ( bmi >= 18.5 and bmi < 24.9):
25+
print("Healthy")
26+
27+
elif ( bmi >= 24.9 and bmi < 30):
28+
print("overweight")
29+
30+
elif ( bmi >=30):
31+
print("Suffering from Obesity")

0 commit comments

Comments
 (0)