<?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: C Tutorial &#8211; for loop, while loop, break and continue</title>
	<atom:link href="http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue</link>
	<description>CodingUnit is your online resource for learning to program. Tutorials on C, C++, PHP, Python, MySQL, Java, JQuery, Opengl, DirectX and much more!</description>
	<lastBuildDate>Mon, 06 Feb 2012 06:08:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: alonestone</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4460</link>
		<dc:creator>alonestone</dc:creator>
		<pubDate>Sat, 04 Feb 2012 02:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4460</guid>
		<description>I&#039;m trying to put a loop in this code, but it&#039;s not working properly, any help would be appreciated.
#include 
#include 
#include 
#include 
 
void about(char *);
 
main()
   {  		
     
	pid_t child;
	pid_t child1;
	pid_t child2;
	about(&quot;Dad&quot;);
	printf(&quot;Now ..  Forking !!\n&quot;);
	child = fork();
	child1 = fork();
	child2 = fork();
 
	if (child &lt; 0) {
		perror (&quot;Unable to fork&quot;);
		exit(1);
	} else if (child == 0)
		about (&quot;son&quot;);
	else if (child1 ==0)
		about (&quot;dad&quot;);
	else if (child2 ==0)
		about (&quot;son&quot;);
	exit(2);
}
 
void about(char * msg)
{
	pid_t me;
	pid_t oldone;
	
	me = getpid();
	oldone = getppid();
 
	printf(&quot;[%s] Hi, my pid is %d and I come from %d.\n&quot;, msg, me, oldone);

	}</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to put a loop in this code, but it&#8217;s not working properly, any help would be appreciated.<br />
#include<br />
#include<br />
#include<br />
#include </p>
<p>void about(char *);</p>
<p>main()<br />
   {  		</p>
<p>	pid_t child;<br />
	pid_t child1;<br />
	pid_t child2;<br />
	about(&#8220;Dad&#8221;);<br />
	printf(&#8220;Now ..  Forking !!\n&#8221;);<br />
	child = fork();<br />
	child1 = fork();<br />
	child2 = fork();</p>
<p>	if (child &lt; 0) {<br />
		perror (&quot;Unable to fork&quot;);<br />
		exit(1);<br />
	} else if (child == 0)<br />
		about (&quot;son&quot;);<br />
	else if (child1 ==0)<br />
		about (&quot;dad&quot;);<br />
	else if (child2 ==0)<br />
		about (&quot;son&quot;);<br />
	exit(2);<br />
}</p>
<p>void about(char * msg)<br />
{<br />
	pid_t me;<br />
	pid_t oldone;</p>
<p>	me = getpid();<br />
	oldone = getppid();</p>
<p>	printf(&quot;[%s] Hi, my pid is %d and I come from %d.\n&quot;, msg, me, oldone);</p>
<p>	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shalizy</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4459</link>
		<dc:creator>shalizy</dc:creator>
		<pubDate>Fri, 03 Feb 2012 08:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4459</guid>
		<description>A        A+2        A+4        A+6
 3         5          7       9
 6        8           10        12
 9        11           13        15
 12        I7          19       21
how can i get this out put using loops. plz help me....:)</description>
		<content:encoded><![CDATA[<p>A        A+2        A+4        A+6<br />
 3         5          7       9<br />
 6        8           10        12<br />
 9        11           13        15<br />
 12        I7          19       21<br />
how can i get this out put using loops. plz help me&#8230;.:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shalizy</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4457</link>
		<dc:creator>shalizy</dc:creator>
		<pubDate>Fri, 03 Feb 2012 07:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4457</guid>
		<description>this site is realy owsm...:)))</description>
		<content:encoded><![CDATA[<p>this site is realy owsm&#8230;:)))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: it is very helpfull;;;;;;thanks</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4429</link>
		<dc:creator>it is very helpfull;;;;;;thanks</dc:creator>
		<pubDate>Thu, 19 Jan 2012 13:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4429</guid>
		<description>It is very helpfull</description>
		<content:encoded><![CDATA[<p>It is very helpfull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manas maity</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4404</link>
		<dc:creator>manas maity</dc:creator>
		<pubDate>Sun, 08 Jan 2012 15:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4404</guid>
		<description>**write a programe to print  a pascal trangle using for loop. **

#include
#include

void main()
{
int
clrscr();
printf(&quot;these programe is develope by manas maity.BCA \n&quot;);
pintf(&quot;enter number which u want: &quot;);
scanf(&quot;%d&quot;,&amp;n);
for(i=1;i&lt;=n;i++)
{
  c=1;
    for(j=0;j&lt;=n-i;j++)
      printf(&quot;%3c&quot;,32);
      
       for(j=0;j&lt;=i;j++)
        {
          printf(&quot;%6d&quot;,c);
          c=c*(i-j)/(j*1)
            }
      printf(&quot;\n&quot;);
      }
   getch();
       }</description>
		<content:encoded><![CDATA[<p>**write a programe to print  a pascal trangle using for loop. **</p>
<p>#include<br />
#include</p>
<p>void main()<br />
{<br />
int<br />
clrscr();<br />
printf(&#8220;these programe is develope by manas maity.BCA \n&#8221;);<br />
pintf(&#8220;enter number which u want: &#8220;);<br />
scanf(&#8220;%d&#8221;,&amp;n);<br />
for(i=1;i&lt;=n;i++)<br />
{<br />
  c=1;<br />
    for(j=0;j&lt;=n-i;j++)<br />
      printf(&quot;%3c&quot;,32);</p>
<p>       for(j=0;j&lt;=i;j++)<br />
        {<br />
          printf(&quot;%6d&quot;,c);<br />
          c=c*(i-j)/(j*1)<br />
            }<br />
      printf(&quot;\n&quot;);<br />
      }<br />
   getch();<br />
       }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manas maity</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4403</link>
		<dc:creator>manas maity</dc:creator>
		<pubDate>Sun, 08 Jan 2012 15:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4403</guid>
		<description>**decimal to binary using while loop **
 
#include
#include
#include
void main()
{
int n,s=0,r,x=0;
clrscr();
printf(&quot;these programe is develope by manas maity.BCA \n&quot;)
printf(&quot;\n enter number:&quot;);
scanf(&quot;%d&quot;&amp;n);
while(n!=0)
{
n=n%2;
s=s+r*pow(10,x);
n=n/2;
x++;
printf(&quot;the number is  :  %d&quot;,s);
}
getch();
}</description>
		<content:encoded><![CDATA[<p>**decimal to binary using while loop **</p>
<p>#include<br />
#include<br />
#include<br />
void main()<br />
{<br />
int n,s=0,r,x=0;<br />
clrscr();<br />
printf(&#8220;these programe is develope by manas maity.BCA \n&#8221;)<br />
printf(&#8220;\n enter number:&#8221;);<br />
scanf(&#8220;%d&#8221;&amp;n);<br />
while(n!=0)<br />
{<br />
n=n%2;<br />
s=s+r*pow(10,x);<br />
n=n/2;<br />
x++;<br />
printf(&#8220;the number is  :  %d&#8221;,s);<br />
}<br />
getch();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: plzzz help ( loops and arrays)</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4355</link>
		<dc:creator>plzzz help ( loops and arrays)</dc:creator>
		<pubDate>Tue, 13 Dec 2011 23:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4355</guid>
		<description>[...] C Tutorial &#8211; for loop, while loop, break and continue &#124; CodingUnit Programming Tutorials C Programming - Arrays  Basicly :  Code: [...]</description>
		<content:encoded><![CDATA[<p>[...] C Tutorial &#8211; for loop, while loop, break and continue | CodingUnit Programming Tutorials C Programming &#8211; Arrays  Basicly :  Code: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhananjay</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4343</link>
		<dc:creator>dhananjay</dc:creator>
		<pubDate>Thu, 08 Dec 2011 15:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4343</guid>
		<description>i read break statement in book. But didnt got it. i read here and instantly got it because of your simple language. thnx</description>
		<content:encoded><![CDATA[<p>i read break statement in book. But didnt got it. i read here and instantly got it because of your simple language. thnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rakshith kumar</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4270</link>
		<dc:creator>Rakshith kumar</dc:creator>
		<pubDate>Thu, 24 Nov 2011 03:54:55 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4270</guid>
		<description>1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1
i want output like this
conditions
1)using single loop(for or while) 
2)can use maximum of 2 variables</description>
		<content:encoded><![CDATA[<p>1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1<br />
i want output like this<br />
conditions<br />
1)using single loop(for or while)<br />
2)can use maximum of 2 variables</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.codingunit.com/c-tutorial-for-loop-while-loop-break-and-continue/comment-page-1#comment-4137</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 10 Nov 2011 12:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/?p=165#comment-4137</guid>
		<description>@tarun: take a look at &lt;a href=&quot;http://www.codingunit.com/c-tutorial-a-star-pyramid-and-string-triangle-using-for-loops&quot; title=&quot;C Tutorial a star pyramid an string triangle using for loops&quot; rel=&quot;nofollow&quot;&gt;C Tutorial a star pyramid an string triangle using for loops&lt;/a&gt;. In that tutorial we do almost what you&#039;re asking. You should be able to make the additional changes yourself.</description>
		<content:encoded><![CDATA[<p>@tarun: take a look at <a href="http://www.codingunit.com/c-tutorial-a-star-pyramid-and-string-triangle-using-for-loops" title="C Tutorial a star pyramid an string triangle using for loops" rel="nofollow">C Tutorial a star pyramid an string triangle using for loops</a>. In that tutorial we do almost what you&#8217;re asking. You should be able to make the additional changes yourself.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

