for, while and do-while loops, entry and exit control, break and continue, and programs on series, factorials and primes.
In this chapter
- Why we need loops, and the four parts of a loop
- The for loop, multiple counter variables and its variations
- The while loop and working with the digits of a number
- The do-while loop, and converting between for, while and do-while
- Finite, infinite and delay loops
- Jump statements: break and continue
- Standard programs: factorial, prime, perfect number, Fibonacci, largest and smallest