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
Post a Comment