5.7 Summary

You are now able to write numerous programs in Ruby. You also now have a better idea of what an algorithm is. What remains are topics that simplify the writing of complex algorithms and programs.

5.7.1 Key Concepts

  • Loop structures force the computer to repeat a set of steps until a condition is met. This powerful tool greatly decreases the amount of code that must be written for a task to be repeated.

  • While loops, until loops, and for loops can be used to create a loop structure.

  • Nested loops are loops within loops.

5.7.2 Key Definitions

  • Loop structure: A structure used to repeatedly execute a set of instructions.

  • Nested loop: A loop contained within a loop.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.148.177