Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # read height in meters and weight in kg
- # convert read to float
- # calculate bmi value
- # write result
- height = float(input("How tall are you? \n"))
- weight = float(input("How much do you weigh in kg? \n"))
- bmi = (weight / (height * height))
- print ("With the input height and weight, your bmi value is:", bmi)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement