Example 2-3 shows how the operators / and % work with the integral data types.
In the following example, we illustrate how to use the operators / and % with integral data types.
Consider the following C++ integral expressions:
2 + 3 * 5
3 + x – y / 7
x + 2 * (y – z) + 18
In these expressions, x, y, and z are variables of type int.