Write a Python program to Calculate body mass index
I have used python 3.7 compiler for debugging purpose.
height = float(input("Input your height in meters: ")) weight = float(input("Input your weight in kilogram: ")) print("Your body mass index is: ", round(weight / (height * height), 2))
Result:
Input your height in meters: 3.2
Input your weight in kilogram: 65
Your body mass index is: 6.35
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
I have used python 3.7 compiler for debugging purpose.
Result:
Input your height in meters: 3.2
Input your weight in kilogram: 65
Your body mass index is: 6.35
need an explanation for this answer? contact us directly to get an explanation for this answer