End of Summer - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Text values
Variables
13. Variables in expressions
Functions
Summary

## Instruction

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)


## Exercise

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))