In this chapter, we have a look at a programming style that is quite different from the style that we have seen before. Previously, we wrote programs that operate on variables; one of the basic operations is the assignment statement, which causes the value of an expression to be stored in a variable. It is the only statement that changes the state spanned by the variables. This programming style is called imperative programming.
Unable to display preview. Download preview PDF.