Variables, expressions, assignments
In this chapter we begin (section 1.1) with simple programming problems using variables, assignments and basic constructs (if- and while-statements). Then (section 1.2) we introduce arrays and programming techniques related to them. Finally (section 1.3), we consider a useful approach that helps to develop one-pass algorithms; each of the elements of the input array is processed once.
KeywordsNonnegative Integer Integer Variable Assignment Statement Invariant Relation Preceding Problem
Unable to display preview. Download preview PDF.