Statement
From SwinBrain
A statement in a program is an instruction for the computer to do something. Generally statements include simple statements, branching statements, and looping statements. The following are examples of statement types you are likely to find in programming languages.
- Assignment statements that are used to assign a value to a variable
- If statements that are used to branch based on a condition
- While loops that are used to execute other statements while a condition is true
- Call statements that are used to execute procedures, functions, and methods within the program