structured programming
February 28th, 2010
No comments
structured programming
Can someone tell me what are the 3 fundamental control structures of structured programming?
1. Sequence
2. Selection
3. Iteration
1. Sequence:
instruction a
instruction b
instruction c
etc.
are followed one after the other in strict sequence.
2. Selection.
If A is true then follow instruction B else follow instruction C
(where B and C can be made up of multiple instructions and control structures)
3. Iteration.
Repeat
Instruction A
Until Condition B is True
Where Instruction A can be made up of multiple instruction.
With these 3 control structures, one can build any computer program using a structured programming language.
Structured Programming – Part 1 of 5
Categories: Programming