Most programs perform arithmetic calculations. Figure 2.6 summarizes the C++ arithmetic operators. The asterisk (*) indicates multiplication and the percent sign (%) is the modulus operator that will be discussed shortly. The arithmetic operators in Fig. 2.6 are all binary operators, i.e., operators that take two operands. For example, the expression
number1 + number2 contains the binary operator
+ and the two operands
Integer division (i.e., where both the numerator and the denominator are integers) yields an integer quotient; for example, the expression
7 / 4 evaluates to ...