Computer programs perform tasks via statements. This chapter introduces you to statements in terms of assignment statements, decision statements, loop statements, loop-branching statements, and additional statements.
Introducing Statements
A statement is a syntactic unit that expresses some action to be carried out. Statements are used to assign values to variables, control the flow of execution by making decisions and repeating other statements a specific number of times or indefinitely, and carry out other tasks.
Statements can be ...