Skip to content

Commit

Permalink
Merge pull request #2 from Shuchi2211/Shuchi2211-patch-2
Browse files Browse the repository at this point in the history
Create BMI_Calculator.py
  • Loading branch information
Shuchi2211 authored Sep 30, 2021
2 parents cb75fbc + 864842f commit c0e1903
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Basic Scripts/BMI_Calculator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

Height=float(input("Enter your height in centimeters: "))
Weight=float(input("Enter your Weight in Kg: "))
Height = Height/100
BMI=Weight/(Height*Height)
print("your Body Mass Index is: ",BMI)
if(BMI>0):
if(BMI<=16):
print("you are severely underweight")
elif(BMI<=18.5):
print("you are underweight")
elif(BMI<=25):
print("you are Healthy")
elif(BMI<=30):
print("you are overweight")
else: print("you are severely overweight")
else:("enter valid details")

0 comments on commit c0e1903

Please sign in to comment.