<?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: 10 Challenging star pattern programs in C</title>
	<atom:link href="http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html</link>
	<description>Your mantra to job success</description>
	<lastBuildDate>Thu, 09 Sep 2010 09:18:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Devender Mishra</title>
		<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/comment-page-1#comment-9700</link>
		<dc:creator>Devender Mishra</dc:creator>
		<pubDate>Tue, 27 Jul 2010 14:04:59 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/10/10-challenging-star-pattern-programs-in-c/#comment-9700</guid>
		<description>@ Harpreet
Here is the code for your pattern.

Code 1: # let&#039;s we have enter the number of line say 5 here

	int i,j,pval;
	for(i=1;i&lt;=n;i++)
	{
		printf(&quot;%d &quot;,i);pval=i;
		for(j=2;j&lt;=i;j++){pval+=n-j+1; cout&lt;&lt;pval&lt;&lt;&quot; &quot;;}
		cout&lt;&lt;&quot;\n&quot;;
	}

Code 2: # Let&#039;s we have number N, maximum value to be printed

	int i,j;
	for(i=1;i*i&lt;=8*N+1;i+=2);
	int n,pval;
	n=(i-2)/2;
	n = n*(n+1)/2==N?n:n+1;
	for(i=1;i&lt;=n;i++)
	{
		(i&lt;=N)&amp;&amp;printf(&quot;%d &quot;,i)&#124;&#124;1; pval=i;
		for(j=2;j&lt;=i;j++){pval+=n-j+1;(pval&lt;=N)&amp;&amp;printf(&quot;%d &quot;,pval);}
		cout&lt;&lt;&quot;\n&quot;;
	}</description>
		<content:encoded><![CDATA[<p>@ Harpreet<br />
Here is the code for your pattern.</p>
<p>Code 1: # let&#8217;s we have enter the number of line say 5 here</p>
<p>	int i,j,pval;<br />
	for(i=1;i&lt;=n;i++)<br />
	{<br />
		printf(&quot;%d &quot;,i);pval=i;<br />
		for(j=2;j&lt;=i;j++){pval+=n-j+1; cout&lt;&lt;pval&lt;&lt;&quot; &quot;;}<br />
		cout&lt;&lt;&quot;\n&quot;;<br />
	}</p>
<p>Code 2: # Let&#039;s we have number N, maximum value to be printed</p>
<p>	int i,j;<br />
	for(i=1;i*i&lt;=8*N+1;i+=2);<br />
	int n,pval;<br />
	n=(i-2)/2;<br />
	n = n*(n+1)/2==N?n:n+1;<br />
	for(i=1;i&lt;=n;i++)<br />
	{<br />
		(i&lt;=N)&amp;&amp;printf(&quot;%d &quot;,i)||1; pval=i;<br />
		for(j=2;j&lt;=i;j++){pval+=n-j+1;(pval&lt;=N)&amp;&amp;printf(&quot;%d &quot;,pval);}<br />
		cout&lt;&lt;&quot;\n&quot;;<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harpreet</title>
		<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/comment-page-1#comment-2369</link>
		<dc:creator>harpreet</dc:creator>
		<pubDate>Mon, 03 May 2010 04:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/10/10-challenging-star-pattern-programs-in-c/#comment-2369</guid>
		<description>plz tell me code for this pattern
1
2 6
3 7 10
4 8 11 13
5 9 12 14 15</description>
		<content:encoded><![CDATA[<p>plz tell me code for this pattern<br />
1<br />
2 6<br />
3 7 10<br />
4 8 11 13<br />
5 9 12 14 15</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nipun</title>
		<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/comment-page-1#comment-718</link>
		<dc:creator>Nipun</dc:creator>
		<pubDate>Tue, 16 Feb 2010 13:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/10/10-challenging-star-pattern-programs-in-c/#comment-718</guid>
		<description>Hay many many thanks for give a nice shape of star</description>
		<content:encoded><![CDATA[<p>Hay many many thanks for give a nice shape of star</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhang savita</title>
		<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/comment-page-1#comment-507</link>
		<dc:creator>abhang savita</dc:creator>
		<pubDate>Tue, 02 Feb 2010 10:15:36 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/10/10-challenging-star-pattern-programs-in-c/#comment-507</guid>
		<description>thanks .....i  think  it is good for improving my knowledge</description>
		<content:encoded><![CDATA[<p>thanks &#8230;..i  think  it is good for improving my knowledge</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/comment-page-1#comment-390</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 13 Jan 2010 05:35:04 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/10/10-challenging-star-pattern-programs-in-c/#comment-390</guid>
		<description>Thanks Shyamala. Glad that you liked our examples.</description>
		<content:encoded><![CDATA[<p>Thanks Shyamala. Glad that you liked our examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shyamala Vydyam</title>
		<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/comment-page-1#comment-344</link>
		<dc:creator>Shyamala Vydyam</dc:creator>
		<pubDate>Thu, 07 Jan 2010 11:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/10/10-challenging-star-pattern-programs-in-c/#comment-344</guid>
		<description>Ultimate Examples !!! Looks very professional your problem solving !!! Great &amp; Great!!</description>
		<content:encoded><![CDATA[<p>Ultimate Examples !!! Looks very professional your problem solving !!! Great &amp; Great!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/comment-page-1#comment-79</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 17 Nov 2009 04:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/10/10-challenging-star-pattern-programs-in-c/#comment-79</guid>
		<description>the examples r very well choosen nd explained..........great job.......i too was searching for the answers for a long time......nd i got my solution here...........thnx a lot..........</description>
		<content:encoded><![CDATA[<p>the examples r very well choosen nd explained&#8230;&#8230;&#8230;.great job&#8230;&#8230;.i too was searching for the answers for a long time&#8230;&#8230;nd i got my solution here&#8230;&#8230;&#8230;..thnx a lot&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sridhar</title>
		<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/comment-page-1#comment-81</link>
		<dc:creator>sridhar</dc:creator>
		<pubDate>Fri, 30 Oct 2009 06:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/10/10-challenging-star-pattern-programs-in-c/#comment-81</guid>
		<description>The credit of this post goes to Utsav Banerjee.. Good work Utsav!
Editor,
Interview Mantra</description>
		<content:encoded><![CDATA[<p>The credit of this post goes to Utsav Banerjee.. Good work Utsav!<br />
Editor,<br />
Interview Mantra</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.interviewmantra.net/2009/10/10-star-pattern-programs.html/comment-page-1#comment-80</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 29 Oct 2009 17:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/wordpress/2009/10/10-challenging-star-pattern-programs-in-c/#comment-80</guid>
		<description>thats good job keep it up</description>
		<content:encoded><![CDATA[<p>thats good job keep it up</p>
]]></content:encoded>
	</item>
</channel>
</rss>
