program to calculate BMI (body mass index) of a person.

#to calculate BMI = Kg/m square
Weight _in_kg = float (input("Enter weight in kg:"))
Height_in_meter = float(input("Enter height in meter :"))
Bmi = Weight_in_kg / ( Height_in_meter*Height_in_meter)
Print("BMI is:", Bmi)


Output
Enter weight in kg  : 66
Enter height in meter : 1.6
BMI is : 25.781249999999996

Comments

Popular posts from this blog

program that reads two numbers and an arithmetic operator and displays the computed result.

program to find the multiples of a number ( the divisor) out of given five numbers.