By writing some code.

Before you even start that, think about the task. How would *you* rather than a computer perform this arithmetic task?

Once you have the answer to that (or, at least, an...