It also will tell the compiler what type of operations are permitted and what kind of arithmetic to use. In this case you will probably need four, one for a loop counter, and three for the series. Arithmetic expressions are also new for this program, but not the concept. Other integer operators available will depend on the language. To assign the result of an arithmetic operation to a variable an assignment must be done.
Loops are a way of doing the same set of instructions over and over again.
For an example program I will use a different problem. I will write a program that prints out the first 20 squares and cubes. Many of the features of this program are the same as the assigned lab. The compiler and OS that you used.