Loops/For: Difference between revisions
Zig sorted alphabetically before zkn
(switched to for-loops) |
(Zig sorted alphabetically before zkn) |
||
(One intermediate revision by the same user not shown) | |||
Line 4,136:
pop bc
ret ; return to BASIC interpreter</syntaxhighlight>
=={{header|zkl}}==▼
<syntaxhighlight lang="zkl">foreach i in ([1..5]){▼
foreach j in (i){print("*")}▼
println();▼
}</syntaxhighlight>▼
{{out}}▼
<pre>▼
*▼
**▼
***▼
****▼
*****▼
</pre>▼
=={{header|Zig}}==
Line 4,165 ⟶ 4,151:
}
</syntaxhighlight>
▲{{out}}
▲<pre>
▲*
▲**
▲***
▲****
▲*****
▲</pre>
▲=={{header|zkl}}==
▲<syntaxhighlight lang="zkl">foreach i in ([1..5]){
▲ foreach j in (i){print("*")}
▲ println();
▲}</syntaxhighlight>
{{out}}
<pre>
*
**
***
****
*****
</pre>
|