<?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: E14 Star Pattern Using for Loop.</title>
	<atom:link href="https://www.emblogic.com/blog/08/e14-star-pattern-using-for-loop/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog/08/e14-star-pattern-using-for-loop/</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Mon, 07 Oct 2013 04:00:03 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>By: ayush.gupta</title>
		<link>https://www.emblogic.com/blog/08/e14-star-pattern-using-for-loop/#comment-1374</link>
		<dc:creator><![CDATA[ayush.gupta]]></dc:creator>
		<pubDate>Sat, 18 Aug 2012 18:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=4847#comment-1374</guid>
		<description><![CDATA[Shalini Singhal thanx for the help, it did solve my purpose for printing the star pattern as i wanted to print. Here is the successful program
The Current Print pattern for a value of 3 entered by the user gives:
&quot;___*   &quot;
&quot;__***  &quot;
&quot;_***** &quot;

Replace&quot;_&quot; by space...

rahul1989... initializing i2 with 1 will produce a different result. The logic is to increment i1 by 2...
:) ]]></description>
		<content:encoded><![CDATA[<p>Shalini Singhal thanx for the help, it did solve my purpose for printing the star pattern as i wanted to print. Here is the successful program<br />
The Current Print pattern for a value of 3 entered by the user gives:<br />
&quot;___*   &quot;<br />
&quot;__***  &quot;<br />
&quot;_***** &quot;</p>
<p>Replace&quot;_&quot; by space&#8230;</p>
<p>rahul1989&#8230; initializing i2 with 1 will produce a different result. The logic is to increment i1 by 2&#8230;<br />
 <img src="https://www.emblogic.com/blog/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rahul1989</title>
		<link>https://www.emblogic.com/blog/08/e14-star-pattern-using-for-loop/#comment-1372</link>
		<dc:creator><![CDATA[rahul1989]]></dc:creator>
		<pubDate>Sat, 18 Aug 2012 18:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=4847#comment-1372</guid>
		<description><![CDATA[for(i2=0;i2&lt;=i1;i2++)
{
printf(“*”);

}

look the for loop initialization you have initialized i2 with 0.
therefore you are getting one extra * at each line.
from 0 to i1 (updating according to upper llop) is the printing start&#039;s from 0 to i1.
so i suggest you to initialize i2 from 1 instead of 0.

check it out and reply me also]]></description>
		<content:encoded><![CDATA[<p>for(i2=0;i2&lt;=i1;i2++)<br />
{<br />
printf(“*”);</p>
<p>}</p>
<p>look the for loop initialization you have initialized i2 with 0.<br />
therefore you are getting one extra * at each line.<br />
from 0 to i1 (updating according to upper llop) is the printing start&#039;s from 0 to i1.<br />
so i suggest you to initialize i2 from 1 instead of 0.</p>
<p>check it out and reply me also</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shalini.singhal</title>
		<link>https://www.emblogic.com/blog/08/e14-star-pattern-using-for-loop/#comment-1330</link>
		<dc:creator><![CDATA[shalini.singhal]]></dc:creator>
		<pubDate>Fri, 17 Aug 2012 20:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://emblogic.org/blog/?p=4847#comment-1330</guid>
		<description><![CDATA[At the place of i1++ in first loop ,just apply i1=i1+2....

hope this will give u the correct one....]]></description>
		<content:encoded><![CDATA[<p>At the place of i1++ in first loop ,just apply i1=i1+2&#8230;.</p>
<p>hope this will give u the correct one&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
