<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: A C++ program to generate a Pascal’s triangle</title>
	<atom:link href="http://geeksplanet.net/2008/10/cpp/a-c-program-to-generate-a-pascal%e2%80%99s-triangle/feed/" rel="self" type="application/rss+xml" />
	<link>http://geeksplanet.net/2008/10/cpp/a-c-program-to-generate-a-pascal%e2%80%99s-triangle/</link>
	<description>C, C++, JAVA, PERL programming for Dummies</description>
	<lastBuildDate>Wed, 12 Oct 2011 05:13:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: raks</title>
		<link>http://geeksplanet.net/2008/10/cpp/a-c-program-to-generate-a-pascal%e2%80%99s-triangle/comment-page-1/#comment-4030</link>
		<dc:creator>raks</dc:creator>
		<pubDate>Fri, 18 Dec 2009 03:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://geeksplanet.net/?p=17#comment-4030</guid>
		<description>guys..wat abt dis program..
1
1 2
1 2 3
1 2 3 4</description>
		<content:encoded><![CDATA[<p>guys..wat abt dis program..<br />
1<br />
1 2<br />
1 2 3<br />
1 2 3 4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sanket</title>
		<link>http://geeksplanet.net/2008/10/cpp/a-c-program-to-generate-a-pascal%e2%80%99s-triangle/comment-page-1/#comment-3414</link>
		<dc:creator>sanket</dc:creator>
		<pubDate>Sat, 31 Oct 2009 14:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://geeksplanet.net/?p=17#comment-3414</guid>
		<description>#include
#include

void main()
{
	clrscr();
	int a[10][11];
	int i,j;
	for(i=0;i&lt;=9;i++)
	{
		for(j=0;j&lt;=10;j++)
		   a[i][j]=0;
	}
	a[0][1]=1;
	for(i=1;i&lt;=9;i++)
	{
		for(j=1;j&lt;=10;j++)
		{
			a[i][j]=a[i-1][j-1]+a[i-1][j];
		}
	}

	for(i=0;i=i-5;j--)
			cout&lt;&lt;&quot; &quot;;
		for(j=1;j&lt;=10;j++)
		{
			if(a[i][j]!=0)
				cout&lt;&lt;&quot; &quot;&lt;&lt;a[i][j];
		}
		  cout&lt;&lt;&quot;\n&quot;;
	}
}</description>
		<content:encoded><![CDATA[<p>#include<br />
#include</p>
<p>void main()<br />
{<br />
	clrscr();<br />
	int a[10][11];<br />
	int i,j;<br />
	for(i=0;i&lt;=9;i++)<br />
	{<br />
		for(j=0;j&lt;=10;j++)<br />
		   a[i][j]=0;<br />
	}<br />
	a[0][1]=1;<br />
	for(i=1;i&lt;=9;i++)<br />
	{<br />
		for(j=1;j&lt;=10;j++)<br />
		{<br />
			a[i][j]=a[i-1][j-1]+a[i-1][j];<br />
		}<br />
	}</p>
<p>	for(i=0;i=i-5;j&#8211;)<br />
			cout&lt;&lt;&quot; &quot;;<br />
		for(j=1;j&lt;=10;j++)<br />
		{<br />
			if(a[i][j]!=0)<br />
				cout&lt;&lt;&quot; &quot;&lt;&lt;a[i][j];<br />
		}<br />
		  cout&lt;&lt;&quot;\n&quot;;<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dayle</title>
		<link>http://geeksplanet.net/2008/10/cpp/a-c-program-to-generate-a-pascal%e2%80%99s-triangle/comment-page-1/#comment-3343</link>
		<dc:creator>dayle</dc:creator>
		<pubDate>Wed, 21 Oct 2009 10:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://geeksplanet.net/?p=17#comment-3343</guid>
		<description>the same consept as above but displayed sideways.., tnx.., :D</description>
		<content:encoded><![CDATA[<p>the same consept as above but displayed sideways.., tnx.., <img src='http://geeksplanet.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dayle</title>
		<link>http://geeksplanet.net/2008/10/cpp/a-c-program-to-generate-a-pascal%e2%80%99s-triangle/comment-page-1/#comment-3342</link>
		<dc:creator>dayle</dc:creator>
		<pubDate>Wed, 21 Oct 2009 10:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://geeksplanet.net/?p=17#comment-3342</guid>
		<description>guys.., how could you display this program like this:

*
  *
*   *
  *   *
*   *   *
  *   *
*   *
  *
*

given any value for the row..,</description>
		<content:encoded><![CDATA[<p>guys.., how could you display this program like this:</p>
<p>*<br />
  *<br />
*   *<br />
  *   *<br />
*   *   *<br />
  *   *<br />
*   *<br />
  *<br />
*</p>
<p>given any value for the row..,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satish Gandham</title>
		<link>http://geeksplanet.net/2008/10/cpp/a-c-program-to-generate-a-pascal%e2%80%99s-triangle/comment-page-1/#comment-2195</link>
		<dc:creator>Satish Gandham</dc:creator>
		<pubDate>Wed, 08 Jul 2009 05:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://geeksplanet.net/?p=17#comment-2195</guid>
		<description>Hello Tom,
Thanks for ur comment, i will post the optimized code very soon.</description>
		<content:encoded><![CDATA[<p>Hello Tom,<br />
Thanks for ur comment, i will post the optimized code very soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://geeksplanet.net/2008/10/cpp/a-c-program-to-generate-a-pascal%e2%80%99s-triangle/comment-page-1/#comment-1821</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 24 Jun 2009 03:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://geeksplanet.net/?p=17#comment-1821</guid>
		<description>That&#039;s really slow, though (exponential in the number of rows you want to output) since you have to keep computing factorials over and over again. 

It&#039;s *much* faster to use the fact that each element is the sum of the two above it. This means you need to always store the last row you&#039;ve computed, but that&#039;s not a big deal if you are willing to spend O(n) space.</description>
		<content:encoded><![CDATA[<p>That&#8217;s really slow, though (exponential in the number of rows you want to output) since you have to keep computing factorials over and over again. </p>
<p>It&#8217;s *much* faster to use the fact that each element is the sum of the two above it. This means you need to always store the last row you&#8217;ve computed, but that&#8217;s not a big deal if you are willing to spend O(n) space.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HacK_MiNDeD</title>
		<link>http://geeksplanet.net/2008/10/cpp/a-c-program-to-generate-a-pascal%e2%80%99s-triangle/comment-page-1/#comment-419</link>
		<dc:creator>HacK_MiNDeD</dc:creator>
		<pubDate>Sun, 19 Apr 2009 09:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://geeksplanet.net/?p=17#comment-419</guid>
		<description>I needed it...!
Thanks</description>
		<content:encoded><![CDATA[<p>I needed it&#8230;!<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

