Core Syntaxfor, while, and C-style loops
All courses

Repeat until your terminal scrollback gives up

for x in list iterates words. while loops until condition fails. Arithmetic lives in $(( )).

Quirk: for i in {1..10} is Bash brace expansion — handy, but not POSIX.

Output
Press Run to execute your code.