Programs written in procedural languages, the most common kind, are like recipes, having lists of ingredients and step-by-step instructions for using them. The three basic control structures in virtually every procedural language are:
- 1. Sequence—combine the liquid ingredients, and next add the dry ones.
- 2. Conditional—if the tomatoes are fresh then simmer them, but if canned, skip this step.
- 3. Iterative—beat the egg whites until they form soft peaks.
No comments:
Post a Comment