Skip to main content

2 docs tagged with "for-loop"

View all tags

Loops: for loops (Part 1)

Welcome to the world of loops! Loops are used to execute a block of code repeatedly. The for loop is ideal when you know in advance how many times you want to iterate.

Loops: for loops (Part 2)

In this article, we'll explore nested for loops, which are loops inside other loops. This is a powerful technique for working with two-dimensional data structures or creating patterns.