Practice problem
What Are Variables? — Definition & Examples
Knight Zero notices that whenever he starts with a number of horses, then buys a new horse, and then sells another horse, the number of horses stays the same. For example,
- ;
- ;
- ;
- ;
- and so on.
He doesn't have room on his shield to carve this observation down, and paper is too expensive. What is a shorter but more abstract way to express Knight Zero's observation, if represents the number of horses he started with?