Loops

  1. 3-part for loop
  2. while-like for loop
  3. infinite loop
  4. break out from loop
  5. continue
  6. loop on two variables
  7. break out from internal loop (labels)
  8. Exercise: One-dimensional spacefight
  9. Exercise: FizzBuzz
  10. Solution: One-dimensional spacefight - multiple guesses till hit
  11. Solution: One-dimensional spacefight - allow x
  12. Solution: One-dimensional spacefight - allow m
  13. Solution: FizzBuzz