Loops and Control Structures—Wolfram Language Documentation

The execution of a Wolfram Language program involves the evaluation of a sequence of Wolfram Language expressions. In simple programs, the expressions to be evaluated may be separated by semicolons, and evaluated one after another. Often, however, you need to evaluate expressions several times, in some kind of “loop”. Simple looping constructs. This evaluates Print[i^2], with i running from 1 to 4.

Source: Loops and Control Structures—Wolfram Language Documentation

Advertisements