<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Software Development Guide &#8211; auza.net</title>
	<atom:link href="https://auza.net/category/software/feed" rel="self" type="application/rss+xml" />
	<link>https://auza.net</link>
	<description>Website Solutions, Mobile Apps, Content Writing, Digital Marketing</description>
	<lastBuildDate>Tue, 12 Nov 2013 16:03:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>The Two General Loops</title>
		<link>https://auza.net/2010-08-11-the-two-general-loops.html</link>
					<comments>https://auza.net/2010-08-11-the-two-general-loops.html#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 11 Aug 2010 07:41:54 +0000</pubDate>
				<category><![CDATA[Software Development Guide]]></category>
		<category><![CDATA[Tech Updates]]></category>
		<guid isPermaLink="false">http://60c5add93b.nxcli.net/?p=81</guid>

					<description><![CDATA[There are two general loops, the while loop and the for loop.  There are variations on how the loops are implemented in different languages but the developer usually have two scenarios:  he knows how many times to loop or he needs to loop until a condition becomes true. The for loop is used when the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>There are two general loops, the while loop and the for loop.  There are variations on how the loops are implemented in different languages but the developer usually have two scenarios:  he knows how many times to loop or he needs to loop until a condition becomes true.</p>
<p>The for loop is used when the developer knows how many times to perform the loop.  For example, he needs to print the ascii code of the characters of the alphabet.  In PHP and in C (remove the $ sign from the variable if using C language), this can be done this way:</p>
<address>for ($i = 65; $i &lt; 91; $i++) {</address>
<address> printf(&#8220;%c\n&#8221;, $i);<br />
</address>
<address>}</address>
<address>
</address>
<p>If we didn&#8217;t know that there are 26 characters in the alphabet but we know that the last character is the letter &#8216;Z&#8217;, then we would need to use a while loop:</p>
<address>$i = 65;</address>
<address>while (chr($i) != &#8216;Z&#8217;) {</address>
<address> printf(&#8220;%c\n&#8221;, $i);</address>
<address> $i++;<br />
</address>
<address>}<br />
</address>
]]></content:encoded>
					
					<wfw:commentRss>https://auza.net/2010-08-11-the-two-general-loops.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: auza.net @ 2026-04-10 08:58:22 by W3 Total Cache
-->