<?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[Additions- und Multiplikationstabelle % n]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich denke ich habe das soweit richtig lösen können. Irgendwas passt allerdingst nicht noch nicht ganz. Sollte eigentlich so aussehen:</p>
<p>0 1 2 3<br />
1 2 3 0<br />
2 3 0 1</p>
<p>Habt ihr einen Tipp für mich?</p>
<pre><code>#include&lt;iostream&gt;
using namespace std;
int main()
{
    int n;
    cout &lt;&lt; &quot;Es wird eine Additions- und Multiplikationstabelle für modulo-n erstellt.&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;-------------------------------------------------------------------------&quot; &lt;&lt; endl;
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Bitte geben Sie den Wert fuer die Berechnung ein: &quot;;
    cin &gt;&gt; n;

    // for Schleife für die Zeilen
    for(int i = 0 ; i &lt;= n ; i++)
    {
        cout &lt;&lt; i+1 &lt;&lt; &quot;|&quot; &lt;&lt; endl;

        // for Schleife für die Spalten
        for(int j = 0 ; j &lt;= n ; j++)
        {
        cout &lt;&lt; &quot; &quot;;
        cout &lt;&lt; i+j;
        }
    }

    cout &lt;&lt; endl;
    cout &lt;&lt; endl;

     // for Schleife für die Zeilen
    for(int i = 0 ; i &lt;= n ; i++)
    {
        cout &lt;&lt; i+1 &lt;&lt; &quot;|&quot; &lt;&lt; endl;

        // for Schleife für die Spalten
        for(int j = 0 ; j &lt;= n ; j++)
        {
        cout &lt;&lt; &quot; &quot;;
        cout &lt;&lt; i*j%n;
        }
    }

    return 0;
}
</code></pre>
<p>Danke und lg,<br />
red78</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/332079/additions-und-multiplikationstabelle-n</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 17:50:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/332079.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Apr 2015 12:43:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Additions- und Multiplikationstabelle % n on Wed, 08 Apr 2015 12:43:04 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich denke ich habe das soweit richtig lösen können. Irgendwas passt allerdingst nicht noch nicht ganz. Sollte eigentlich so aussehen:</p>
<p>0 1 2 3<br />
1 2 3 0<br />
2 3 0 1</p>
<p>Habt ihr einen Tipp für mich?</p>
<pre><code>#include&lt;iostream&gt;
using namespace std;
int main()
{
    int n;
    cout &lt;&lt; &quot;Es wird eine Additions- und Multiplikationstabelle für modulo-n erstellt.&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;-------------------------------------------------------------------------&quot; &lt;&lt; endl;
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Bitte geben Sie den Wert fuer die Berechnung ein: &quot;;
    cin &gt;&gt; n;

    // for Schleife für die Zeilen
    for(int i = 0 ; i &lt;= n ; i++)
    {
        cout &lt;&lt; i+1 &lt;&lt; &quot;|&quot; &lt;&lt; endl;

        // for Schleife für die Spalten
        for(int j = 0 ; j &lt;= n ; j++)
        {
        cout &lt;&lt; &quot; &quot;;
        cout &lt;&lt; i+j;
        }
    }

    cout &lt;&lt; endl;
    cout &lt;&lt; endl;

     // for Schleife für die Zeilen
    for(int i = 0 ; i &lt;= n ; i++)
    {
        cout &lt;&lt; i+1 &lt;&lt; &quot;|&quot; &lt;&lt; endl;

        // for Schleife für die Spalten
        for(int j = 0 ; j &lt;= n ; j++)
        {
        cout &lt;&lt; &quot; &quot;;
        cout &lt;&lt; i*j%n;
        }
    }

    return 0;
}
</code></pre>
<p>Danke und lg,<br />
red78</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2449482</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2449482</guid><dc:creator><![CDATA[redi78]]></dc:creator><pubDate>Wed, 08 Apr 2015 12:43:04 GMT</pubDate></item><item><title><![CDATA[Reply to Additions- und Multiplikationstabelle % n on Wed, 08 Apr 2015 13:32:43 GMT]]></title><description><![CDATA[<p>redi78 schrieb:</p>
<blockquote>
<p>ich denke ich habe das soweit richtig lösen können. Irgendwas passt allerdingst nicht noch nicht ganz.</p>
</blockquote>
<p>Das ist wohl ein Widerspruch.</p>
<p>redi78 schrieb:</p>
<blockquote>
<p>Habt ihr einen Tipp für mich?</p>
</blockquote>
<p>Beschreibe, was die aktuelle Ausgabe ist. Ich sehe mir das sonst ganz sicher nicht an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2449487</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2449487</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Wed, 08 Apr 2015 13:32:43 GMT</pubDate></item><item><title><![CDATA[Reply to Additions- und Multiplikationstabelle % n on Wed, 08 Apr 2015 13:43:31 GMT]]></title><description><![CDATA[<p>%n vergessen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2449489</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2449489</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Wed, 08 Apr 2015 13:43:31 GMT</pubDate></item></channel></rss>