We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61e19a5 + 1bdeb49 commit 97cf6cdCopy full SHA for 97cf6cd
BMI CALCULATER
@@ -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