<?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[berechnung von n!]]></title><description><![CDATA[<p>also ich soll n! berechnen...iterativ hab ich das auch hinbekommen, nur irgendwie finde ich den fehler in meinem rekursiv programm nich...vielleicht könnte mal wer einen blick drauf werfen</p>
<p>#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>int fakultat(int n)<br />
{<br />
cout&lt;&lt;&quot;n eingeben:&quot;;<br />
cin&gt;&gt;n;<br />
{<br />
if(n&lt;=1);<br />
return 1;<br />
else<br />
return n*fakultat(n-1)<br />
}<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/234612/berechnung-von-n</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 10:26:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/234612.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Feb 2009 21:37:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to berechnung von n! on Thu, 19 Feb 2009 21:37:38 GMT]]></title><description><![CDATA[<p>also ich soll n! berechnen...iterativ hab ich das auch hinbekommen, nur irgendwie finde ich den fehler in meinem rekursiv programm nich...vielleicht könnte mal wer einen blick drauf werfen</p>
<p>#include &lt;iostream&gt;</p>
<p>using namespace std;</p>
<p>int fakultat(int n)<br />
{<br />
cout&lt;&lt;&quot;n eingeben:&quot;;<br />
cin&gt;&gt;n;<br />
{<br />
if(n&lt;=1);<br />
return 1;<br />
else<br />
return n*fakultat(n-1)<br />
}<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1666749</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1666749</guid><dc:creator><![CDATA[Fantissimo]]></dc:creator><pubDate>Thu, 19 Feb 2009 21:37:38 GMT</pubDate></item><item><title><![CDATA[Reply to berechnung von n! on Thu, 19 Feb 2009 21:42:20 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int fakultat(int n)
{
if(n == 0)
   return 1;
else
   return n*fakultat(n-1);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1666750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1666750</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Thu, 19 Feb 2009 21:42:20 GMT</pubDate></item></channel></rss>