-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Shuchi2211/Shuchi2211-patch-2
Create BMI_Calculator.py
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |