<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>triangle Archives - The Code Developer</title>
	<atom:link href="https://www.thecodedeveloper.com/tag/triangle/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.thecodedeveloper.com/tag/triangle/</link>
	<description>The Code Developer is a Programming Blog.</description>
	<lastBuildDate>Fri, 25 Jan 2019 19:05:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>C++ program to print Floyd&#8217;s triangle</title>
		<link>https://www.thecodedeveloper.com/cpp-program-to-print-floyds-triangle/</link>
					<comments>https://www.thecodedeveloper.com/cpp-program-to-print-floyds-triangle/#respond</comments>
		
		<dc:creator><![CDATA[Aastha Tyagi]]></dc:creator>
		<pubDate>Fri, 25 Jan 2019 12:55:16 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Pattern]]></category>
		<category><![CDATA[triangle]]></category>
		<guid isPermaLink="false">https://www.thecodedeveloper.com/?p=3942</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="998" height="524" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="C++ program to print Floyd&#039;s triangle" decoding="async" fetchpriority="high" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle.png 998w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle-442x232.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle-768x403.png 768w" sizes="(max-width: 998px) 100vw, 998px" /></div>
<p>In this article write a <strong>C++ Program to print Floyd's triangle. </strong> This Program first takes the numbers of rows and uses nested for loops to <strong>print Floyd's triangle</strong>.</p>
<p>The post <a href="https://www.thecodedeveloper.com/cpp-program-to-print-floyds-triangle/">C++ program to print Floyd&#8217;s triangle</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="998" height="524" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="C++ program to print Floyd&#039;s triangle" decoding="async" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle.png 998w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle-442x232.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle-768x403.png 768w" sizes="(max-width: 998px) 100vw, 998px" /></div><p>In this article write a <strong>C++ Program to print Floyd&#8217;s triangle. </strong> This Program first takes the numbers of rows and uses nested for loops to <strong>print Floyd&#8217;s triangle</strong>.</p>
<h2>C++ Program to print Floyd&#8217;s triangle</h2>
<pre class="brush: cpp; title: ; notranslate">
//C++ program to print Floyd's triangle

#include &lt;iostream&gt;
using namespace std;

int main()
{
    int rows, num = 1;

    cout &lt;&lt; &quot;Enter number of rows: &quot;;
    cin &gt;&gt; rows;

    // outer loop is responsible for row
	for(int i = 1; i &lt;= rows; i++)
    {
        
		//inner loop is responsible for columns
		for(int j = 1; j &lt;= i; j++)
        {
            
			// printing number 
		    cout &lt;&lt; num &lt;&lt; &quot; &quot;;
            num++;
        }
        
		// give line breaks after ending every row
        cout &lt;&lt; endl;
    }

    return 0;
}
</pre>
<h3>When the above C++ program is compile and run, this will produce the following result:</h3>
<p><a href="https://www.thecodedeveloper.com/cpp-program-to-print-floyds-triangle/cpp-program-to-print-floyds-triangle-2/" rel="attachment wp-att-3970"><img decoding="async" src="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle.png" alt="C++ program to print Floyd&#039;s triangle" width="998" height="524" class="aligncenter size-full wp-image-3970" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle.png 998w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle-442x232.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2019/01/cpp-program-to-print-floyds-triangle-768x403.png 768w" sizes="(max-width: 998px) 100vw, 998px" /></a></p>
<p>The post <a href="https://www.thecodedeveloper.com/cpp-program-to-print-floyds-triangle/">C++ program to print Floyd&#8217;s triangle</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.thecodedeveloper.com/cpp-program-to-print-floyds-triangle/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
