Loops/For: Difference between revisions
Included code to make example compilable and also displaying output
(Included code to make example compilable and also displaying output) |
|||
Line 3,477:
=={{header|Seed7}}==
<syntaxhighlight lang="seed7">
$ include "seed7_05.s7i";
for J range 1 to I do▼
write("*");▼
const proc: main is func
end for;▼
local
writeln;▼
var integer: I is 1;
end for;</syntaxhighlight>▼
var integer: J is 1;
begin
for I range 1 to 5 do
▲ for J range 1 to I do
▲ write("*");
end for;
▲ writeln;
▲ end for;
end func;
{{out}}
<pre>
*
**
***
****
*****
</pre>
=={{header|SETL}}==
|