<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Forth] nested while loop]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich lerne gerade Forth und momentan bin ich bei Schleifen angekommen. Ich habe das folgende kleine Programm geschrieben:</p>
<pre><code>: g 0 begin dup 10 &lt; while 1+ dup . repeat ;
: f 0 begin dup 10 &lt; while 1+ g repeat ;
f
</code></pre>
<p>Eigentlich sollte es 10 mal &quot;1 2 3 4 5 6 7 8 9 10&quot; ausgeben. Leider funktioniert das nicht, denn es wird nur einmal &quot;1 2 3 4 5 6 7 8 9 10&quot; ausgegeben.<br />
Wo liegt mein Fehler?</p>
<p>MfG<br />
forth'ler</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/164760/forth-nested-while-loop</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Jul 2026 23:08:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/164760.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Nov 2006 13:48:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Forth] nested while loop on Sun, 12 Nov 2006 13:48:39 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich lerne gerade Forth und momentan bin ich bei Schleifen angekommen. Ich habe das folgende kleine Programm geschrieben:</p>
<pre><code>: g 0 begin dup 10 &lt; while 1+ dup . repeat ;
: f 0 begin dup 10 &lt; while 1+ g repeat ;
f
</code></pre>
<p>Eigentlich sollte es 10 mal &quot;1 2 3 4 5 6 7 8 9 10&quot; ausgeben. Leider funktioniert das nicht, denn es wird nur einmal &quot;1 2 3 4 5 6 7 8 9 10&quot; ausgegeben.<br />
Wo liegt mein Fehler?</p>
<p>MfG<br />
forth'ler</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1173002</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1173002</guid><dc:creator><![CDATA[forth&#x27;ler]]></dc:creator><pubDate>Sun, 12 Nov 2006 13:48:39 GMT</pubDate></item><item><title><![CDATA[Reply to [Forth] nested while loop on Sun, 12 Nov 2006 16:31:23 GMT]]></title><description><![CDATA[<p>Du musst den Zähler wieder von Stack nehmen:</p>
<pre><code>: g 0 begin dup 10 &lt; while 1+ dup . repeat [b]drop[/b] ;
: f 0 begin dup 10 &lt; while 1+ g repeat [b]drop[/b] ;
f
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1173112</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1173112</guid><dc:creator><![CDATA[mastercpp]]></dc:creator><pubDate>Sun, 12 Nov 2006 16:31:23 GMT</pubDate></item></channel></rss>