Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 97cf6cd

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

File tree

Expand file treeCollapse file tree

1 file changed

+31
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+31
-0
lines changed
Open diff view settings
Collapse file

‎BMI CALCULATER‎

Copy file name to clipboard
+31Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.