Here we use a void function and global variables to do things. Unfortunately, this means "multiply" can only be used in this one context and we can't re-use it or the other variables without possibly changing some other part fo the code. By making this an "int" function instead we can make the function much more generic, safe, and avoid globals: