<?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>Pyramid Pattern Program Archives - The Code Developer</title>
	<atom:link href="https://www.thecodedeveloper.com/category/pyramid-pattern-program/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.thecodedeveloper.com/category/pyramid-pattern-program/</link>
	<description>The Code Developer is a Programming Blog.</description>
	<lastBuildDate>Thu, 27 Dec 2018 18:57:50 +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>PHP Program To Print Inverted Number Pyramid Pattern</title>
		<link>https://www.thecodedeveloper.com/print-inverted-number-pyramid-pattern/</link>
					<comments>https://www.thecodedeveloper.com/print-inverted-number-pyramid-pattern/#respond</comments>
		
		<dc:creator><![CDATA[Aastha Tyagi]]></dc:creator>
		<pubDate>Sun, 28 Jan 2018 10:40:45 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pyramid Pattern Program]]></category>
		<category><![CDATA[Pattern]]></category>
		<guid isPermaLink="false">https://www.thecodedeveloper.com/?p=2590</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="758" height="424" src="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/Inverted-Number-Pyramid.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Inverted Number Pyramid" decoding="async" fetchpriority="high" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/Inverted-Number-Pyramid.png 758w, https://www.thecodedeveloper.com/wp-content/uploads/2018/01/Inverted-Number-Pyramid-442x247.png 442w" sizes="(max-width: 758px) 100vw, 758px" /></div>
<p>In this article write a PHP Program To Print Inverted Number Pyramid pattern. This Program first takes the numbers of rows and then prints pattern using nested for loops. Read Also : PHP Program To Print Pyramid PHP Program To Print Inverted Number Pyramid Pattern using numbers Output:</p>
<p>The post <a href="https://www.thecodedeveloper.com/print-inverted-number-pyramid-pattern/">PHP Program To Print Inverted Number Pyramid Pattern</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="758" height="424" src="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/Inverted-Number-Pyramid.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Inverted Number Pyramid" decoding="async" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/Inverted-Number-Pyramid.png 758w, https://www.thecodedeveloper.com/wp-content/uploads/2018/01/Inverted-Number-Pyramid-442x247.png 442w" sizes="(max-width: 758px) 100vw, 758px" /></div><p>In this article write a PHP Program To <strong>Print Inverted Number Pyramid pattern</strong>. This Program first takes the numbers of rows and then prints pattern using <strong>nested for loops</strong>.</p>
<p>Read Also : <a href="https://www.thecodedeveloper.com/php-program-to-print-pyramid/">PHP Program To Print Pyramid</a></p>
<h2>PHP Program To Print Inverted Number Pyramid Pattern using numbers</h2>
<pre class="brush: php; title: ; notranslate">
&lt;?php
echo &quot;&lt;pre&gt;&quot;;
$n = 9;
for ($i = 9; $i &gt; 0; $i--) {
    for ($j = $n - $i; $j &gt; 0; $j--)
        echo &quot;&amp;nbsp;&amp;nbsp;&quot;;
    for ($j = 2 * $i - 1; $j &gt; 0; $j--)
        echo (&quot;&amp;nbsp;&quot; . $i);
    echo &quot;&lt;br&gt;&quot;;
}
echo &quot;&lt;/pre&gt;&quot;;
?&gt;
</pre>
<h3>Output:</h3>
<p><a href="https://www.thecodedeveloper.com/print-inverted-number-pyramid-pattern/inverted-number-pyramid/" rel="attachment wp-att-2594"><img decoding="async" src="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/Inverted-Number-Pyramid.png" alt="Print Inverted Number Pyramid Pattern" width="758" height="424" class="aligncenter size-full wp-image-2594" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/Inverted-Number-Pyramid.png 758w, https://www.thecodedeveloper.com/wp-content/uploads/2018/01/Inverted-Number-Pyramid-442x247.png 442w" sizes="(max-width: 758px) 100vw, 758px" /></a></p>
<p>The post <a href="https://www.thecodedeveloper.com/print-inverted-number-pyramid-pattern/">PHP Program To Print Inverted Number Pyramid Pattern</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.thecodedeveloper.com/print-inverted-number-pyramid-pattern/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP Program To Print Reverse Pyramid Pattern</title>
		<link>https://www.thecodedeveloper.com/php-program-print-reverse-pyramid-pattern/</link>
					<comments>https://www.thecodedeveloper.com/php-program-print-reverse-pyramid-pattern/#respond</comments>
		
		<dc:creator><![CDATA[Vikas Kumar]]></dc:creator>
		<pubDate>Thu, 26 Oct 2017 18:04:51 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pyramid Pattern Program]]></category>
		<category><![CDATA[Pattern]]></category>
		<guid isPermaLink="false">https://www.thecodedeveloper.com/?p=1863</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="758" height="427" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/10/reverse-pyramid-pattern.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Print Reverse Pyramid pattern" decoding="async" loading="lazy" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/10/reverse-pyramid-pattern.png 758w, https://www.thecodedeveloper.com/wp-content/uploads/2017/10/reverse-pyramid-pattern-442x249.png 442w" sizes="auto, (max-width: 758px) 100vw, 758px" /></div>
<p>In this article write a PHP Program To Print Reverse Pyramid pattern. This Program first takes the numbers of rows and then prints pattern using nested for loops. Read Also : PHP Program To Print Pyramid PHP Program To Print Reverse Pyramid Pattern using * and for loop. &#60;?php echo &#34;&#60;pre&#62;&#34;; $n = 10; for [&#8230;]</p>
<p>The post <a href="https://www.thecodedeveloper.com/php-program-print-reverse-pyramid-pattern/">PHP Program To Print Reverse Pyramid Pattern</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="758" height="427" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/10/reverse-pyramid-pattern.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Print Reverse Pyramid pattern" decoding="async" loading="lazy" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/10/reverse-pyramid-pattern.png 758w, https://www.thecodedeveloper.com/wp-content/uploads/2017/10/reverse-pyramid-pattern-442x249.png 442w" sizes="auto, (max-width: 758px) 100vw, 758px" /></div><p>In this article write a PHP Program To <strong>Print Reverse Pyramid pattern</strong>. This Program first takes the numbers of rows and then prints pattern using <strong>nested for loops</strong>.</p>
<p>Read Also : <a href="https://www.thecodedeveloper.com/php-program-to-print-pyramid/">PHP Program To Print Pyramid</a></p>
<h2>PHP Program To Print Reverse Pyramid Pattern using * and for loop.</h2>
<pre class="brush: php; title: ; notranslate">
&lt;?php
echo &quot;&lt;pre&gt;&quot;;
$n = 10;
for ($i = 10; $i &gt; 0; $i--) {
    for ($j = $n - $i; $j &gt; 0; $j--)
        echo &quot;&amp;nbsp;&amp;nbsp;&quot;;
    for ($j = 2 * $i - 1; $j &gt; 0; $j--)
        echo (&quot;&amp;nbsp;*&quot;);
    echo &quot;&lt;br&gt;&quot;;
}
echo &quot;&lt;/pre&gt;&quot;;
?&gt;
</pre>
<h3>Output:</h3>
<p><a href="https://www.thecodedeveloper.com/php-program-print-reverse-pyramid-pattern/reverse-pyramid-pattern/" rel="attachment wp-att-1865"><img loading="lazy" decoding="async" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/10/reverse-pyramid-pattern.png" alt="reverse pyramid pattern" width="758" height="427" class="aligncenter size-full wp-image-1865" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/10/reverse-pyramid-pattern.png 758w, https://www.thecodedeveloper.com/wp-content/uploads/2017/10/reverse-pyramid-pattern-442x249.png 442w" sizes="auto, (max-width: 758px) 100vw, 758px" /></a></p>
<p>The post <a href="https://www.thecodedeveloper.com/php-program-print-reverse-pyramid-pattern/">PHP Program To Print Reverse Pyramid Pattern</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.thecodedeveloper.com/php-program-print-reverse-pyramid-pattern/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP Program to Print Pyramid</title>
		<link>https://www.thecodedeveloper.com/php-program-to-print-pyramid/</link>
					<comments>https://www.thecodedeveloper.com/php-program-to-print-pyramid/#comments</comments>
		
		<dc:creator><![CDATA[Aastha Tyagi]]></dc:creator>
		<pubDate>Sat, 16 Sep 2017 18:33:27 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pyramid Pattern Program]]></category>
		<category><![CDATA[Pattern]]></category>
		<guid isPermaLink="false">https://www.thecodedeveloper.com/?p=1397</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="750" height="422" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-750x422.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Print Pyramid" decoding="async" loading="lazy" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-750x422.png 750w, https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-442x249.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-360x202.png 360w, https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number.png 755w" sizes="auto, (max-width: 750px) 100vw, 750px" /></div>
<p>In this article write a PHP Program to Print Pyramid pattern. This Program first takes the numbers of rows and then prints pattern using nested for loops. This kind of problems are useful for beginners to understands the fundamentals of for loops and spaces. PHP program to Print Pyramid Pattern using * and loop. &#60;?php [&#8230;]</p>
<p>The post <a href="https://www.thecodedeveloper.com/php-program-to-print-pyramid/">PHP Program to Print Pyramid</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="750" height="422" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-750x422.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Print Pyramid" decoding="async" loading="lazy" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-750x422.png 750w, https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-442x249.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-360x202.png 360w, https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number.png 755w" sizes="auto, (max-width: 750px) 100vw, 750px" /></div><p>In this article write a <strong>PHP Program to Print Pyramid</strong> pattern. This Program first takes the numbers of rows and then prints pattern using <strong>nested for loops</strong>. This kind of problems are useful for beginners to understands the fundamentals of <strong>for loops and spaces</strong>.</p>
<h2>PHP program to Print Pyramid Pattern using * and loop.</h2>
<pre class="brush: php; title: ; notranslate">
&lt;?php
echo &quot;&lt;pre&gt;&quot;;
$space = 10;
for ($i = 0; $i &lt;= 10; $i++) {
    
    for ($k = 0; $k &lt; $space; $k++) {
        echo &quot;&amp;nbsp;&quot;;
    }
    for ($j = 0; $j &lt; 2 * $i - 1; $j++) {
        echo &quot;*&quot;;
    }
    
    $space--;
    echo &quot;&lt;br/&gt;&quot;;
}
echo &quot;&lt;/pre&gt;&quot;;
?&gt;
</pre>
<h3>Output:</h3>
<p><a href="https://www.thecodedeveloper.com/php-program-to-print-pyramid/print-diamond-triangle-number-3/" rel="attachment wp-att-1716"><img loading="lazy" decoding="async" src="https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number.png" alt="Print Pyramid" width="755" height="425" class="aligncenter size-full wp-image-1716" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number.png 755w, https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-442x249.png 442w, https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-750x422.png 750w, https://www.thecodedeveloper.com/wp-content/uploads/2017/09/print-diamond-triangle-number-360x202.png 360w" sizes="auto, (max-width: 755px) 100vw, 755px" /></a></p>
<p><strong>Explanation:</strong></p>
<p>The program is used to build a <strong>pyramid using * (asterisk)</strong> and for that you have to understand the <strong>for loop</strong> which is implemented inside the program.</p>
<pre class="brush: php; gutter: false; light: false; title: Now a for loop will go from; notranslate">$i = 0 till 10</pre>
<pre class="brush: php; gutter: false; title: Inside this there will be another for loop which is nested for and will go from; notranslate">
$k = 0 till $k &lt; $space
</pre>
<pre class="brush: php; gutter: false; title: It will give some designated space to the output; notranslate">
echo &quot;&amp;nbsp;&quot;;
</pre>
<pre class="brush: php; gutter: false; title: Another nested for loop will be implemented which will go from; notranslate">
$j = 0 till $j= 2 * $i - 1
</pre>
<p>and inside that loop block prints the asterisk (*) symbol. Outside the inner for loop, you have to <strong>decrement the value of variable $space by 1</strong></p>
<pre class="brush: php; gutter: false; title: And then will a line break on every outer loop iteration; notranslate">echo &quot;&lt;br/&gt;&quot;; </pre>
<p>The post <a href="https://www.thecodedeveloper.com/php-program-to-print-pyramid/">PHP Program to Print Pyramid</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.thecodedeveloper.com/php-program-to-print-pyramid/feed/</wfw:commentRss>
			<slash:comments>13</slash:comments>
		
		
			</item>
	</channel>
</rss>
