How to find Body Mass Index using Python


Source Code



# Get height and weight as a input from the user

h=int(input("Enter your height in cms:"))

w=int(input("Enter your weight in kgs:"))

# print the output

print("Your body mass index is:", w/(h*h)*10000)


Contact
naveenkumarlearningcode@gmail.com | naveenkannan595@gmail.com