Question:What are the three logical structures in any structured program?
Answer
1. Sequence structure: In the sequence structure, instructions are executed in the order in which they are encounterd.
2. Loop/Iteration structure: The loop (or iteration) structure provides for the repetition of one or more instructions for as long as a given situation, referred to as a condition, exists.
3. Selection structure: A condition is tested, and one of two alternative courses of action is selected depending on whether the condition is ture or false.