Note 5.1: Loop Categories Detailed
Note 5.2.1: For Loop Operation
Note 5.2.2: For Loop Constraints
Note 5.3: Compound Stmt in For Loop Example 3
Note 5.4.1: Sum Algorithm - Sum Loop Example 4
Note 5.4.2: Sum Algorithm with Running Total Example 5
Note 5.4.3: Sum Algorithm with Input Data Example 6
Note 5.5: Average Algorithm with Input Data Example 7
Note 5.6: Factorial Algorithm - Product Loop Example 8
Note 5.7: While Loop Operation
Note 5.8: While Loop Example Example 11
Note 5.9.1: Uncertainty in float / double Compares
Note 5.9.2: While Loop Fails to Stop with float /double Example 13
Note 5.10: While Specific Sentinel Stop Example 14
Note 5.11: While Sentinel Range Stop Example 15
Note 5.12: While Stop with EOF
Note 5.13: While Stop on scanf Return Example 18
Note 5.14: While Sum Algorithm - Sum Loop Example 19
Note 5.15: While Average Algorithm Example 20
Note 5.16: While Factorial Algorithm - Product Loop Example 21
Note 5.17: While Loop Stopped by Converging to a Value Example 22
Note 5.18: While Loop Stopped by Small Difference Between Values from Subsequent Iterations Example 23
Note 5.19.1: Nested Loops Example 24
Note 5.19.2: Nested Repeated Sums (for in while) Example 25
Note 5.19.2.1: Nested Loops (while in for) Example 25.1
Note 5.19.3: Nested Loops and Branches Example 26
Note 5.19.4: Nested Branches in Loop Example 27
Note 5.20.1: float / double Equality Error Generated by Round-Off Error in Looping Example 28
Note 5.20.2: Overcomes float / double Round-Off Error in Looping Example 29
Note 5.21: Continue vs Break Example 30
Note 5.21.1: for for break Example
Note 5.21.2: for for continue Example
Note 5.22: do while Looping Example 31
Note 5.23: Flag Set from Successive Iteration Value Comparison Example 32