Write a Python program to Calculate body mass index


Introduction

Write a Python program to Calculate body mass index. I have used python 3.7 compiler for debugging purpose.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. height = float(input("Input your height in meters: "))
  2. weight = float(input("Input your weight in kilogram: "))
  3. print("Your body mass index is: ", round(weight / (height * height), 2))

Result

python language techstudy.org

     





Related Topics




Popular Posts