<?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[Zahlenreihe richtig Ausgeben]]></title><description><![CDATA[<p>Ich habe nach Stunden keine Lösung für mein Problem gefunden. Kein wirklicher Profi, hoffe aber trotzdem jemand hätte ein bisschen Zeit um mir behilflich zu sein :).<br />
Ich hab eine Konsolenanwendung geschrieben welche folgendes Aussehen hat:<br />
#include &lt;iostream&gt;</p>
<p>using namespace std;<br />
int main(void)<br />
{<br />
short Wert ;<br />
Wert = (-1);<br />
cout &lt;&lt; &quot;Die Zahlen von 1 bis 199\n&quot;;<br />
do</p>
<p>{<br />
Wert= Wert + 1 ;<br />
cout &lt;&lt; &quot; &quot; &lt;&lt; Wert &lt;&lt; &quot; &quot; ;<br />
} while (Wert &lt;199);<br />
return 0;<br />
}</p>
<p>Mein Problem ist aber das in der Ausgabe die Zahlen 0-199 jeweils in Zehnerblöcken ausgegeben werden sollen.Hinzu kommt das die Einerstellen auch untereinander stehen sollen. Kann mir ein Profi da helfen?<br />
Zum Beispiel:<br />
0 1 2 3 4 5 6 7 8 9<br />
10 11 12 13 14 15 16 17 18 19</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/335692/zahlenreihe-richtig-ausgeben</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 12:01:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/335692.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Dec 2015 21:47:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zahlenreihe richtig Ausgeben on Fri, 04 Dec 2015 21:47:47 GMT]]></title><description><![CDATA[<p>Ich habe nach Stunden keine Lösung für mein Problem gefunden. Kein wirklicher Profi, hoffe aber trotzdem jemand hätte ein bisschen Zeit um mir behilflich zu sein :).<br />
Ich hab eine Konsolenanwendung geschrieben welche folgendes Aussehen hat:<br />
#include &lt;iostream&gt;</p>
<p>using namespace std;<br />
int main(void)<br />
{<br />
short Wert ;<br />
Wert = (-1);<br />
cout &lt;&lt; &quot;Die Zahlen von 1 bis 199\n&quot;;<br />
do</p>
<p>{<br />
Wert= Wert + 1 ;<br />
cout &lt;&lt; &quot; &quot; &lt;&lt; Wert &lt;&lt; &quot; &quot; ;<br />
} while (Wert &lt;199);<br />
return 0;<br />
}</p>
<p>Mein Problem ist aber das in der Ausgabe die Zahlen 0-199 jeweils in Zehnerblöcken ausgegeben werden sollen.Hinzu kommt das die Einerstellen auch untereinander stehen sollen. Kann mir ein Profi da helfen?<br />
Zum Beispiel:<br />
0 1 2 3 4 5 6 7 8 9<br />
10 11 12 13 14 15 16 17 18 19</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2478223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2478223</guid><dc:creator><![CDATA[JoernF]]></dc:creator><pubDate>Fri, 04 Dec 2015 21:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlenreihe richtig Ausgeben on Fri, 04 Dec 2015 22:00:43 GMT]]></title><description><![CDATA[<p>Die Zehnerstellen könntest du mit:</p>
<pre><code>if (Wert % 10 == 0)
</code></pre>
<p>Bestimmen und ausgeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2478227</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2478227</guid><dc:creator><![CDATA[Bitmapper]]></dc:creator><pubDate>Fri, 04 Dec 2015 22:00:43 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlenreihe richtig Ausgeben on Fri, 04 Dec 2015 22:06:34 GMT]]></title><description><![CDATA[<p>Das Ausgeben in Spalten machste mit <code>setw()</code> aus <code>&lt;iomanip&gt;</code> .</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;iomanip&gt;

using namespace std;

int main(){
  for (int i=0; i&lt; 10; ++i)
    cout&lt;&lt;setw(3)&lt;&lt;i&lt;&lt;' ';
  cout&lt;&lt;'\n';
  for (int i=100; i&lt; 110; ++i)
    cout&lt;&lt;setw(3)&lt;&lt;i&lt;&lt;' ';
  cout&lt;&lt;'\n';
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2478230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2478230</guid><dc:creator><![CDATA[Furble Wurble]]></dc:creator><pubDate>Fri, 04 Dec 2015 22:06:34 GMT</pubDate></item></channel></rss>