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.
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.
Loop structure: A structure used to repeatedly execute a set of instructions.
Nested loop: A loop contained within a loop.
18.117.148.177