Write a Python program to calculate body mass index.
definition:-
A BMI Calculator will take in the height and weight of the individual and will calculate the BMI of the person.
Body mass index (BMI) is a measure of body fat based on height and weight.
logic:-
BMI = weight / (height/100)**2
code:-
height = float(input("Input your height in Feet: "))
weight = float(input("Input your weight in Kilogram: "))
print("Your body mass index is: ", round(weight / (height * height), 2))
output:-
Input your height in Feet: 4
Input your weight in Kilogram: 10
Your body mass index is: 0.62
Input your weight in Kilogram: 10
Your body mass index is: 0.62
tags:-
BMI calculator in python
bmi calculator using python
Post a Comment
If you have any doubts, Please let me know
Thanks!