3 Structured Program Development in C
3 Structured Program Development in C
• Examples:
Simple Activity
• Requires:
– the name of a control variable (loop counter)
– the initial value of the control variable
– the increment (or decrement) by which the control variable is
modified each time through the loop
– the condition that tests for the final value of the control variable
(i.e., whether looping should continue)
for Repetition Statement