Skip to main content

One post tagged with "iteration"

View All Tags

· 4 min read
Stacey "Elugens" Wilson

Both Recursion and Iteration execute the sequence of instructions repeatedly. When a statement in a function calls itself again, this is called recursion, and Iteration occurs when a loop executes the body repeatedly until the controlling condition becomes false. The critical distinction between recursion and Iteration is that recursion is a procedure always applied to a function. In contrast, We can apply Iteration to a sequence of instructions that we wish to run again.