Gearbox Labs presents this video on mathematical operation order in C++ and how it follows algebraic order. In school you may have learned the mnemonic PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition, and Subtraction) to remember what to do and when as you solved algebra problem. C++ uses that same ordering rule (with some changes to the signs used) to mirror what you did with pencil and paper.