Jump to content

Loops/For: Difference between revisions

no edit summary
m (→‎ksh: fix category)
No edit summary
Line 1,548:
output logged in buffer *Messages*:
 
<pre>
*
**
***
****
*****
</pre>
 
=={{header|EMal}}==
<syntaxhighlight lang="emal">
for int i = 0; i < 5; ++i
for int j = 0; j <= i; ++j do write("*") end
writeLine()
end
</syntaxhighlight>
{{out}}
<pre>
*
226

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.