<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'for loop--check my sample program' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'for loop--check my sample program' posted on the 'Beginner C/C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 08:22:11 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 08:22:11 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>for loop--check my sample program</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/375770/375770/for-loop--check-my-sample-program/</link>
      <description>this is the for loop output. i'm still figuring out if i'm going to use function call in this type of problem.. do you have any idea with regards to this problem? MY sample program here was to long, i think there is an easy way to cope it shorter..&lt;br /&gt;
&lt;br /&gt;
i started it with this,&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;#inlcude&amp;lt;stdio.h&amp;gt;
int main()
{
int i,j;
for(i=1;i&amp;lt;=3;i++)
  { for( j=0; j&amp;lt;i; j++)
       {printf("*");
         printf("\n");
        }
for(i=2; i&amp;lt;=4; i++)
  {for(j=0;j&amp;lt;i;j++)
        {printf("*");
         printf("\n);
        }
for(i=3; i&amp;lt;=5; i++)
  {for(j=0;j&amp;lt;i;j++)
        {printf("*");
         printf("\n);
        }
for(i=4; i&amp;lt;=5; i++)
  {for(j=0;j&amp;lt;i;j++)
        {printf("*");
         printf("\n);
        }
for(i=5; i&amp;lt;=6; i++)
  {for(j=0;j&amp;lt;i;j++)
        {printf("*");
         printf("\n);
        }
return 0;
}&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
THIS IS THE OUTPUT:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;*
**
***
**
***
****
***
****
*****
****
*****
******&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/beginnercpp/375770/375770/for-loop--check-my-sample-program/</guid>
      <pubDate>Mon, 22 Sep 2008 05:13:42 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
    <item>
      <title>Re: for loop--check my sample program</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/375770/375774/re-for-loop--check-my-sample-program/#375774</link>
      <description>Here is some "pseudo code" to give some hints (ie code that is nonsense syntax-wise but correct algorithm-wise):&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;stars=1;

for(i=0; i&amp;lt;rows; i++)
{
  for(j=0; j&amp;lt;line_width; j++)
  {
    print [line_width - stars] spaces
    print [stars] stars
    stars++;
  }

  for(j=line_width; j&amp;gt;0; j--)
  {
    /* do the reverse */
  }
}
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/beginnercpp/375770/375774/re-for-loop--check-my-sample-program/#375774</guid>
      <pubDate>Mon, 22 Sep 2008 06:37:14 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
    <item>
      <title>Re: for loop--check my sample program</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/375770/375789/re-for-loop--check-my-sample-program/#375789</link>
      <description>ok...&lt;br /&gt;
is there any form that is more simple and common to my program?&lt;br /&gt;
i'm not familiar with psuedo code.. tanx&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/beginnercpp/375770/375789/re-for-loop--check-my-sample-program/#375789</guid>
      <pubDate>Mon, 22 Sep 2008 07:08:28 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
  </channel>
</rss>
