Q:

Write a Python program to Calculate body mass index

0

Write a Python program to Calculate body mass index

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now