<?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[Übungsaufgabe Struktogramm Primfaktorzerlegung]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich bin neu auf diesem Board und hoffe ich bin hier auch richtig.<br />
Ich habe zur Prüfungsvorbereitung einige Aufgaben bekommen. Die ersten Zwei Aufgaben konnte ich bisher auch lösen, bei der dritten scheitere ich leider völlig.<br />
Ich benutze Visual Studio Community 2015. Das Programm wird in C++ geschrieben.<br />
Es geht darum aus einem Struktogramm ein Programm zu schreiben. Hierzu darf ich Schleifen und Verzweigungen verwenden.<br />
Die Deklarationen und Berechnungen bzw. arithmetischen Ausdrücke bekomme ich hin. Allerdings scheitere ich an den Schleifen und Verzweigungen. Ich habe das Bild mal hochgeladen und hier als Link eingefügt. Vielleicht könnt ihr mir ja weiterhelfen, wie ich damit am besten Anfange. Die Suche habe ich bemüht aber leider nichts passendes gefunden.</p>
<p><a href="https://picload.org/view/ripgwdpl/uebung.png.html" rel="nofollow">https://picload.org/view/ripgwdpl/uebung.png.html</a></p>
<p>Vielen Dank schon mal und beste Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/343257/übungsaufgabe-struktogramm-primfaktorzerlegung</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 14:59:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/343257.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Jun 2017 10:02:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 10:02:40 GMT]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich bin neu auf diesem Board und hoffe ich bin hier auch richtig.<br />
Ich habe zur Prüfungsvorbereitung einige Aufgaben bekommen. Die ersten Zwei Aufgaben konnte ich bisher auch lösen, bei der dritten scheitere ich leider völlig.<br />
Ich benutze Visual Studio Community 2015. Das Programm wird in C++ geschrieben.<br />
Es geht darum aus einem Struktogramm ein Programm zu schreiben. Hierzu darf ich Schleifen und Verzweigungen verwenden.<br />
Die Deklarationen und Berechnungen bzw. arithmetischen Ausdrücke bekomme ich hin. Allerdings scheitere ich an den Schleifen und Verzweigungen. Ich habe das Bild mal hochgeladen und hier als Link eingefügt. Vielleicht könnt ihr mir ja weiterhelfen, wie ich damit am besten Anfange. Die Suche habe ich bemüht aber leider nichts passendes gefunden.</p>
<p><a href="https://picload.org/view/ripgwdpl/uebung.png.html" rel="nofollow">https://picload.org/view/ripgwdpl/uebung.png.html</a></p>
<p>Vielen Dank schon mal und beste Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532353</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532353</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 10:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 10:25:05 GMT]]></title><description><![CDATA[<p>Was ist deine konkrete Frage?</p>
<p>Thaelisin schrieb:</p>
<blockquote>
<p>Vielleicht könnt ihr mir ja weiterhelfen, wie ich damit am besten Anfange.</p>
</blockquote>
<p>Der beste Anfang zum Lösen von Hausaufgaben ist es, den Unterrichtsstoff zu lernen und anzuwenden. Letzter Punkt ist auch sehr wichtig und ist gerade der Zweck, weshalb Hausaufgaben gestellt werden. Wenn du das Gefühl hast, dass du den derzeitigen Stoff nicht mehr verstehst und/oder nicht weißt, wie du ihn anwendest, dann hast du diese Schritte bei den vorherigen Lektionen nicht gewissenhaft genug durchgeführt. Dann empfiehlt es sich dringend, diese noch einmal zu wiederholen, sonst wirst du immer weiter abgehängt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532355</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 12 Jun 2017 10:25:05 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 10:25:24 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/u109509" rel="nofollow">SeppJ</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/f1" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (alle ISO-Standards)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532356</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 12 Jun 2017 10:25:24 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 10:37:19 GMT]]></title><description><![CDATA[<p>Zeige deinen Code. Definiere &quot;scheitere ich an den Schleifen und Verzweigungen&quot;. Ein if wirst du ja wohl hoffentlich schreiben können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532358</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 12 Jun 2017 10:37:19 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 11:32:46 GMT]]></title><description><![CDATA[<p>Hallo,<br />
danke schon mal für die Hilfe und entschuldigt das ich im falschen Forum begonnen habe. Programmieren ist leider für mich ein Buch mit sieben Siegeln. Ich studiere Maschinenbau.</p>
<pre><code>#include &lt;iomanip&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

void main(void)

{
	int faktor = 2, zahl, rest;
	cout &lt;&lt; &quot;Geben Sie eine Zahl ein: &quot; &lt;&lt; endl;
	cin &gt;&gt; zahl;
	// Hier muss ich wohl irgendwie mit einer Schleife beginnen
	rest = zahl%faktor;
	if (rest == 0)
	{
		cout &lt;&lt; &quot;Faktor: &quot; &lt;&lt; faktor &lt;&lt; endl;
		zahl = zahl / faktor;
		faktor = 2;
	}
	else
	{
		faktor = faktor + 1;
	}

	cout &lt;&lt; &quot;Zahl:&quot; &lt;&lt; zahl &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2532362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532362</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 11:32:46 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 11:26:42 GMT]]></title><description><![CDATA[<p>Thaelisin schrieb:</p>
<blockquote>
<p>Programmieren ist leider für mich ein Buch mit sieben Siegeln. Ich studiere Maschinenbau.</p>
</blockquote>
<p>Blabla</p>
<p>Welche Schleifen kennst du? Welche davon könnte wohl zu deinem Struktogramm passen?</p>
<p>Benutzer Codetags!<br />
Es heißt &quot;int main()&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532364</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 12 Jun 2017 11:26:42 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 11:45:32 GMT]]></title><description><![CDATA[<p>Ah ja danke, jetzt hat das mit den Codetags funktioniert.<br />
Ich habe das mit dem int main() schon öfters im Internet gelesen. Warum sollte ich es so schreiben und nicht so wie bisher?</p>
<p>for, do und while. Aber ich habe keine Idee welche Bedingungen ich da angeben müsste.</p>
<p>Edit: Was mich irritiert ist, wie die Schleife im Struktogramm angezeigt wird. Alle Beispiele die ich gesehen hab umschließen einen Block immer komplett. Was hier ja nicht der Fall ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532365</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 11:45:32 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 11:50:00 GMT]]></title><description><![CDATA[<p>Thaelisin schrieb:</p>
<blockquote>
<p>Ich habe das mit dem int main() schon öfters im Internet gelesen. Warum sollte ich es so schreiben und nicht so wie bisher?</p>
</blockquote>
<p>Weil es falsch ist?</p>
<p>Thaelisin schrieb:</p>
<blockquote>
<p>for, do und while. Aber ich habe keine Idee welche Bedingungen ich da angeben müsste.</p>
</blockquote>
<p>Die Bedingung steht im Struktogramm.</p>
<p>Thaelisin schrieb:</p>
<blockquote>
<p>Was hier ja nicht der Fall ist.</p>
</blockquote>
<p>Nein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532366</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 12 Jun 2017 11:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 12:03:50 GMT]]></title><description><![CDATA[<p>Ich habe es mal mit for probiert. Allerdings wird mir angezeigt das eine Bedingung erwartet wir. Aber ich habe doch die Bedingung eingegeben?</p>
<pre><code>#include &lt;iomanip&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main()

{
	int faktor = 2, zahl, rest;
	cout &lt;&lt; &quot;Geben Sie eine Zahl ein: &quot; &lt;&lt; endl;
	cin &gt;&gt; zahl;

	for (faktor &lt;= (int)sqrt((double)zahl)
	{

		rest = zahl%faktor;

			if (rest == 0)
			{
				cout &lt;&lt; &quot;Faktor: &quot; &lt;&lt; faktor &lt;&lt; endl;
					zahl = zahl / faktor;
					faktor = 2;
			}
			else
			{
				faktor = faktor + 1;
			}
	}
	cout &lt;&lt; &quot;Zahl:&quot; &lt;&lt; zahl &lt;&lt; endl;
}
</code></pre>
<p>Danke für deine Mühe schon mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532367</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532367</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 12:03:50 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 12:07:13 GMT]]></title><description><![CDATA[<p>Lies nochmal nach, wie eine for-Schleife aussieht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532368</guid><dc:creator><![CDATA[SG1]]></dc:creator><pubDate>Mon, 12 Jun 2017 12:07:13 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 12:07:19 GMT]]></title><description><![CDATA[<p>Thaelisin schrieb:</p>
<blockquote>
<p>Ich habe es mal mit for probiert.</p>
</blockquote>
<p>Warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532369</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532369</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 12 Jun 2017 12:07:19 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 12:22:25 GMT]]></title><description><![CDATA[<p>Ah ja stimmt. Initialisierung, Bedingung, Statement.<br />
Da wird das wohl gar nicht die richtige Schleife sein. Ich habe es jetzt mal mit der while-Schleife probiert. Da bekomme ich zwar keine Fehler aber es änndert auch nichts.^</p>
<pre><code>#include &lt;iomanip&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main()

{
	int faktor = 2, zahl, rest;
	cout &lt;&lt; &quot;Geben Sie eine Zahl ein: &quot; &lt;&lt; endl;
	cin &gt;&gt; zahl;

	while (faktor &lt;= (int)sqrt((double)zahl))
	{

		rest = zahl%faktor;

			if (rest == 0)
			{
				cout &lt;&lt; &quot;Faktor: &quot; &lt;&lt; faktor &lt;&lt; endl;
					zahl = zahl / faktor;
					faktor = 2;
			}
			else
			{
				faktor = faktor + 1;
			}
	}
	cout &lt;&lt; &quot;Zahl:&quot; &lt;&lt; zahl &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2532370</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532370</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 12:22:25 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 12:30:46 GMT]]></title><description><![CDATA[<p>Warum setzt du den 'factor' innerhalb der Schleife wieder auf 2 zurück?<br />
Du kannst dir ja mal mit</p>
<pre><code class="language-cpp">cout &lt;&lt; &quot;Faktor:&quot; &lt;&lt; faktor &lt;&lt; endl;
</code></pre>
<p>diesen in der Schleife ausgeben lassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532372</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532372</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Mon, 12 Jun 2017 12:30:46 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 12:33:27 GMT]]></title><description><![CDATA[<p>Thaelisin schrieb:</p>
<blockquote>
<p>Ich habe es jetzt mal mit der while-Schleife probiert.</p>
</blockquote>
<p>Warum?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532373</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532373</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 12 Jun 2017 12:33:27 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 13:24:21 GMT]]></title><description><![CDATA[<p>Ich habe mir den Faktor jetzt mal innerhalb der Schleife ausgeben lassen. Da bekomme ich aber gar nichts mehr angezeigt.</p>
<p>Ich habe mich gegen die for-Schleife entschieden, da ich denke (irrtümer natürlich nicht ausgeschlossen) das ich hier nichts hoch zähle oder ähnliches.</p>
<p>Ist denn überhaupt irgendwas richtig, von dem was ich hier tue?</p>
<p>Edit: Ach so, vll doch mit der for-Schleife. Da ich ja bei false faktor = faktor+1 zähle. Nur wo muss ich denn dann die schleife ansetzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532381</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532381</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 13:24:21 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 13:35:42 GMT]]></title><description><![CDATA[<p>Th69 schrieb:</p>
<blockquote>
<p>Warum setzt du den 'factor' innerhalb der Schleife wieder auf 2 zurück?<br />
Du kannst dir ja mal mit</p>
<pre><code class="language-cpp">cout &lt;&lt; &quot;Faktor:&quot; &lt;&lt; faktor &lt;&lt; endl;
</code></pre>
<p>diesen in der Schleife ausgeben lassen.</p>
</blockquote>
<p>Weil er einen Primfaktor gefunden hat und die nächste Primfaktor Prüfung wieder bei 2 beginnt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532383</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Mon, 12 Jun 2017 13:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 13:41:03 GMT]]></title><description><![CDATA[<p>Das sieht doch schon besser aus oder?</p>
<pre><code>#include &lt;iomanip&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main()

{
	int faktor, zahl, rest;
	cout &lt;&lt; &quot;Geben Sie eine Zahl ein: &quot; &lt;&lt; endl;
	cin &gt;&gt; zahl;

	for (faktor = 2; faktor&lt;=(int)sqrt(double(zahl));faktor++)
	{

		rest = zahl%faktor;

			if (rest == 0)
			{
				cout &lt;&lt; &quot;Faktor: &quot; &lt;&lt; faktor &lt;&lt; endl;
					zahl = zahl / faktor;
					faktor = 2;
			}

	}
	cout &lt;&lt; &quot;Zahl:&quot; &lt;&lt; zahl &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2532386</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532386</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 13:41:03 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 13:48:02 GMT]]></title><description><![CDATA[<p>Thaelisin schrieb:</p>
<blockquote>
<p>Das sieht doch schon besser aus oder?</p>
</blockquote>
<p>Hat das noch was mit deinem Struktogramm zu tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532388</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 12 Jun 2017 13:48:02 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 13:49:50 GMT]]></title><description><![CDATA[<p>Thaelisin schrieb:</p>
<blockquote>
<p>Das sieht doch schon besser aus oder?</p>
</blockquote>
<p>Nein. Bei dir hat die 36 die Primfaktoren 2, 3 und 6!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532389</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532389</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 12 Jun 2017 13:49:50 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 14:19:18 GMT]]></title><description><![CDATA[<p>Ach mist...<br />
Kann mir jemand von euch irgendwie weiterhelfen? Ich weiß nicht was ich falsch mache.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532393</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532393</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 14:19:18 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 14:23:29 GMT]]></title><description><![CDATA[<p>Thaelisin schrieb:</p>
<blockquote>
<p>Ach mist...<br />
Kann mir jemand von euch irgendwie weiterhelfen? Ich weiß nicht was ich falsch mache.</p>
</blockquote>
<p>Du hältst dich nicht ans Struktogramm.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532394</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 12 Jun 2017 14:23:29 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 14:35:45 GMT]]></title><description><![CDATA[<p>Jetzt sieht es doch gut aus oder?</p>
<pre><code>#include &lt;iomanip&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main()

{
	int faktor = 2, zahl, rest;
	cout &lt;&lt; &quot;Geben Sie eine Zahl ein: &quot; &lt;&lt; endl;
	cin &gt;&gt; zahl;

	while (faktor&lt;=(int)sqrt(double(zahl)))
	{

		rest = zahl%faktor;

			if (rest == 0)
			{
				cout &lt;&lt; &quot;Faktor: &quot; &lt;&lt; faktor &lt;&lt; endl;
					zahl = zahl / faktor;
					faktor = 2;
			}
			else
			{
				faktor = faktor + 1;
			}

	}
	cout &lt;&lt; &quot;Zahl:&quot; &lt;&lt; zahl &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2532395</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532395</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 14:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 14:39:17 GMT]]></title><description><![CDATA[<p>Ja? Ich sage nur Struktogramm.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532396</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532396</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Mon, 12 Jun 2017 14:39:17 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 14:49:36 GMT]]></title><description><![CDATA[<p>Hmm ich erkenne nicht, wo mein Programm aktuell von dem Struktogramm abweicht. Kannst du mir bitte weiterhelfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532398</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 14:49:36 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 14:53:42 GMT]]></title><description><![CDATA[<pre><code>#include &lt;iomanip&gt;
#include &lt;iostream&gt;
#include &lt;cmath&gt;

using namespace std;

int main()

{
    int faktor = 2, zahl, rest;
    cout &lt;&lt; &quot;Geben Sie eine Zahl ein: &quot; &lt;&lt; endl;
    cin &gt;&gt; zahl;

    do
    {
        rest = zahl%faktor;

            if (rest == 0)
            {
                cout &lt;&lt; &quot;Faktor: &quot; &lt;&lt; faktor &lt;&lt; endl;
                    zahl = zahl / faktor;
                    faktor = 2;
            }
            else
            {
                faktor = faktor + 1;
            }

    }while (faktor&lt;=(int)sqrt(double(zahl)))
    cout &lt;&lt; &quot;Zahl:&quot; &lt;&lt; zahl &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2532399</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532399</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Mon, 12 Jun 2017 14:53:42 GMT</pubDate></item><item><title><![CDATA[Reply to Übungsaufgabe Struktogramm Primfaktorzerlegung on Mon, 12 Jun 2017 14:56:49 GMT]]></title><description><![CDATA[<p>Ach so, war es daran zu erkennen wie die Schleife im Struktogramm dargestellt ist? Also wo der Block nur links und unten von der Schleife eingefasst wird?</p>
<p>Vielen Dank schon mal!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2532400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2532400</guid><dc:creator><![CDATA[Thaelisin]]></dc:creator><pubDate>Mon, 12 Jun 2017 14:56:49 GMT</pubDate></item></channel></rss>