<?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[Matheaufgabe ?!]]></title><description><![CDATA[<p>Hi!<br />
Also ich habe ein Problem..<br />
Ich will eine bestimmte Zahl (zB 120) durch eine andere bestimmte Zahl (zB 4) teilen.<br />
Die vorgegenen Zahlen kann man selbst definieren wie die 120 und die 4!!!</p>
<pre><code class="language-cpp">int zahl_1, zahl2;
cin&lt;&lt;&quot;Zahl bestimmen: &quot;&lt;&lt;zahl_1;
cin&lt;&lt;&quot;In wieviel Zahlen unterteilen?: &quot;&lt;&lt;zahl_2;
</code></pre>
<pre><code class="language-cpp">int ergebnis;
zahl_1 / zahl_2 = ergebnis; //Dies wäre ja 30!!
</code></pre>
<p>Jetzt will ich die 120/4=30 teilen aber anstatt des direkt durch 4 zu teilen das ich genau 4 x 30 rausbekomme will ich die 120 lediglich nur in 4 Zahlen teilen wo das ergebnis 120 ergibt..</p>
<p><strong>120 in 4 teile =&gt; 36, 24 , 4, 56</strong></p>
<p>Dies wiederum sollte sich aber in den 50 bereich handeln</p>
<pre><code class="language-cpp">if(ergebnis=&gt;50)
{
cout&lt;&lt;&quot;Fehler!&quot;;
}
</code></pre>
<p>Könnte mir da jmd bissel nachhelfen? Wie ich die 120 in 4 ungleiche teile zerlegen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/197943/matheaufgabe</link><generator>RSS for Node</generator><lastBuildDate>Thu, 01 Oct 2026 17:27:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/197943.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Nov 2007 10:36:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Matheaufgabe ?! on Fri, 16 Nov 2007 10:36:06 GMT]]></title><description><![CDATA[<p>Hi!<br />
Also ich habe ein Problem..<br />
Ich will eine bestimmte Zahl (zB 120) durch eine andere bestimmte Zahl (zB 4) teilen.<br />
Die vorgegenen Zahlen kann man selbst definieren wie die 120 und die 4!!!</p>
<pre><code class="language-cpp">int zahl_1, zahl2;
cin&lt;&lt;&quot;Zahl bestimmen: &quot;&lt;&lt;zahl_1;
cin&lt;&lt;&quot;In wieviel Zahlen unterteilen?: &quot;&lt;&lt;zahl_2;
</code></pre>
<pre><code class="language-cpp">int ergebnis;
zahl_1 / zahl_2 = ergebnis; //Dies wäre ja 30!!
</code></pre>
<p>Jetzt will ich die 120/4=30 teilen aber anstatt des direkt durch 4 zu teilen das ich genau 4 x 30 rausbekomme will ich die 120 lediglich nur in 4 Zahlen teilen wo das ergebnis 120 ergibt..</p>
<p><strong>120 in 4 teile =&gt; 36, 24 , 4, 56</strong></p>
<p>Dies wiederum sollte sich aber in den 50 bereich handeln</p>
<pre><code class="language-cpp">if(ergebnis=&gt;50)
{
cout&lt;&lt;&quot;Fehler!&quot;;
}
</code></pre>
<p>Könnte mir da jmd bissel nachhelfen? Wie ich die 120 in 4 ungleiche teile zerlegen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404214</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404214</guid><dc:creator><![CDATA[mathematik]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:36:06 GMT</pubDate></item><item><title><![CDATA[Reply to Matheaufgabe ?! on Fri, 16 Nov 2007 10:41:27 GMT]]></title><description><![CDATA[<p>Du suchst dir nacheinander drei Summanden aus, die in deinem Wunschbereich liegen - der vierte ergibt sich dann automatisch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404223</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:41:27 GMT</pubDate></item><item><title><![CDATA[Reply to Matheaufgabe ?! on Fri, 16 Nov 2007 11:24:27 GMT]]></title><description><![CDATA[<p>Falsch:</p>
<pre><code class="language-cpp">int ergebnis; 
zahl_1 / zahl_2 = ergebnis; //Dies wäre ja 30!!
</code></pre>
<p>Richtig:</p>
<pre><code class="language-cpp">int ergebnis; 
ergebnis =zahl_1 / zahl_2;  //Dies wäre ja 30!!
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1404252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404252</guid><dc:creator><![CDATA[Korrektur]]></dc:creator><pubDate>Fri, 16 Nov 2007 11:24:27 GMT</pubDate></item><item><title><![CDATA[Reply to Matheaufgabe ?! on Fri, 16 Nov 2007 11:54:25 GMT]]></title><description><![CDATA[<p>Falsch:</p>
<p>mathematik schrieb:</p>
<blockquote>
<p>Hi!</p>
<pre><code class="language-cpp">int zahl_1, zahl2;
cin&lt;&lt;&quot;Zahl bestimmen: &quot;&lt;&lt;zahl_1;
cin&lt;&lt;&quot;In wieviel Zahlen unterteilen?: &quot;&lt;&lt;zahl_2;
</code></pre>
</blockquote>
<p>Richtig:</p>
<pre><code>int zahl_1, zahl2;
	cout &lt;&lt; &quot;Zahl bestimmen:&quot;;
	cin &gt;&gt; zahl_1;

	cout &lt;&lt; &quot;In wieviel Zahlen unterteilen?:&quot;;
	cin &gt;&gt; zahl2;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1404283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404283</guid><dc:creator><![CDATA[dawa85]]></dc:creator><pubDate>Fri, 16 Nov 2007 11:54:25 GMT</pubDate></item><item><title><![CDATA[Reply to Matheaufgabe ?! on Fri, 16 Nov 2007 12:35:22 GMT]]></title><description><![CDATA[<p>ja okay das war nur schnell geschrieben! ich schreibe jetzt mal mein hauptprogramm und stell den quelltext rein!<br />
und zu der einen antwort das ich 3 bestimmen soll und der letzte ergibt sich automatisch ist mir klar! aber ich will das immer wieder anderen (wie in dem beispiel) 4 zahlenkombinationen zu 120 führen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404331</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404331</guid><dc:creator><![CDATA[mathematik]]></dc:creator><pubDate>Fri, 16 Nov 2007 12:35:22 GMT</pubDate></item><item><title><![CDATA[Reply to Matheaufgabe ?! on Fri, 16 Nov 2007 12:43:40 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cstdlib&gt;

using namespace std;

int main()
{
    int zahl_1 , zahl_2;
    int ergebnis;

    cout&lt;&lt;&quot;Bitte geben sie das Ergebnis ein: &quot;;
    cin&gt;&gt;zahl_1;

    cout&lt;&lt;&quot;Division durch: &quot;;
    cin&gt;&gt;zahl_2;

    ergebnis = zahl_1 / zahl_2;

    cout&lt;&lt;endl&lt;&lt;&quot;Ergebnis: &quot;&lt;&lt;ergebnis&lt;&lt;endl;

    system(&quot;Pause&quot;);

}
</code></pre>
<p>120 / 4 = 30</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404341</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404341</guid><dc:creator><![CDATA[mathematik]]></dc:creator><pubDate>Fri, 16 Nov 2007 12:43:40 GMT</pubDate></item></channel></rss>