do (loop)
Numeric loop.
Syntax
do i = start, end ... end do
Description
do i = 1, 5 → from 1 to 5 (BOTH inclusive). The third value is the step: do i=0,10,2.
Example
Loading editor…
Expected output
55
When to use?
Summation, array processing, iteration.
Common mistakes
- ⚠️ do i=1,5 → the final value 5 IS INCLUDED.