Loops/N plus one half: Difference between revisions

Loops/N plus one half in Asymptote
(Loops/N plus one half in Asymptote)
Line 530:
{{out}}
 
<pre>1, 2, 3, 4, 5, 6, 7, 8, 9, 10</pre>
 
=={{header|Asymptote}}==
<syntaxhighlight lang="Asymptote">for(int i = 1; i <= 10; ++i) {
write(i, suffix=none);
if(i < 10) write(", ", suffix=none);
}</syntaxhighlight>
{{out}}
<pre>1, 2, 3, 4, 5, 6, 7, 8, 9, 10</pre>
 
2,136

edits