Skip to content

Raghuvansyn/BMI-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

BMI-calculator

Program that interprets the Body Mass Index (BMI) based on a user's weight and height.

Enter your height in meters e.g., 1.55

height = float(input())

Enter your weight in kilograms e.g., 72

weight = int(input()) BMI = weight/(height*height) if BMI<18.5: print(f"Your BMI is {BMI}, you are underweight.") elif 18.5<=BMI<25: print(f"Your BMI is {BMI}, you have a normal weight.") elif 25<=BMI<30: print(f"Your BMI is {BMI}, you are slightly overweight.") elif 30<=BMI<35: print(f"Your BMI is {BMI}, you are obese.") else: print(f"Your BMI is {BMI}, you are clinically obese.")

About

Program that interprets the Body Mass Index (BMI) based on a user's weight and height.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors