Skip to content

Commit c0e1903

Browse files
authored
Merge pull request #2 from Shuchi2211/Shuchi2211-patch-2
Create BMI_Calculator.py
2 parents cb75fbc + 864842f commit c0e1903

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: Basic Scripts/BMI_Calculator.py

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

0 commit comments

Comments
 (0)