On January 21th at 14:15 UTC , progression through exercises will be unavailable for 10 minutes due to a planned maintenance break.
Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Text values
13. Variables in expressions


Good job! You can also use variables in expressions. For example, if you store someone's height in a variable named height, you can later use that variable in an expression that calculates their BMI!

weight / (height * height)


After seeing Tanya calculate her ideal weight, John decided to do the same for himself. John's height is stored in a variable called height. Using this variable, calculate John's ideal body weight with the following rule that is specific to men:

50 + (0.9 * (height - 152))