<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Learn C++ beginer programs</title>
	<atom:link href="http://wapcpp.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wapcpp.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 08 Jul 2009 14:49:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='wapcpp.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Learn C++ beginer programs</title>
		<link>http://wapcpp.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://wapcpp.wordpress.com/osd.xml" title="Learn C++ beginer programs" />
	<atom:link rel='hub' href='http://wapcpp.wordpress.com/?pushpress=hub'/>
		<item>
		<title>write a program to calculate sum of all even numbers upto n</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-calculate-sum-of-all-even-numbers-upto-n/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-calculate-sum-of-all-even-numbers-upto-n/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:49:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[else if]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[if else]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[numbers]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-calculate-sum-of-all-even-numbers-upto-n/</guid>
		<description><![CDATA[A number is taken from user and sum of all even numbers upto that number is calculated. Select To use this code as it is.. select and copy paste this code into code.cpp file #include&#60;iostream.h&#62; #include&#60;conio.h&#62; void main() { clrscr(); int n,sum=0; cout&#60;&#60;&#8221;Please enter a number: &#8220;; cin&#62;&#62;n; for (int i=1;i&#60;=n;i++) { if(i%2==0) sum=sum+i; else [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=46&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeHolder" class="codeHolder" style="width:500px;">A number is taken from user and sum of all even numbers upto that number is calculated.</div>
<div id="codeHolder" class="codeHolder" style="width:500px;">
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">int n,sum=0;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Please enter a number: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">for (int i=1;i&lt;=n;i++)
</li>
<li class="codeLI">{
</li>
<li class="codeLI">if(i%2==0)
</li>
<li class="codeLI">sum=sum+i;
</li>
<li class="codeLI">else
</li>
<li class="codeLI">continue;
</li>
<li class="codeLI">}
</li>
<li class="codeLI">cout&lt;&lt;sum;
</li>
<li class="codeLI">getch();</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=46&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-calculate-sum-of-all-even-numbers-upto-n/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
		<item>
		<title>write a program to calculate sum of all odd numbers upto n</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-calculate-sum-of-all-odd-numbers-upto-n/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-calculate-sum-of-all-odd-numbers-upto-n/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:44:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[else if]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[if else]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[numbers]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-calculate-sum-of-all-odd-numbers-upto-n/</guid>
		<description><![CDATA[A number n is taken from user and sum of all odd numbers upto n is calculated. Select To use this code as it is.. select and copy paste this code into code.cpp file #include&#60;iostream.h&#62; #include&#60;conio.h&#62; void main() { clrscr(); int n,sum=0; cout&#60;&#60;&#8221;Please enter a number: &#8220;; cin&#62;&#62;n; for (int i=1;i&#60;=n;i++) { if(i%2!=0) sum=sum+i; else [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=45&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeHolder" class="codeHolder" style="width:500px;">A number n is taken from user and sum of all odd numbers upto n is calculated.</p>
<div class="codeHeader">
</div>
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">int n,sum=0;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Please enter a number: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">for (int i=1;i&lt;=n;i++)
</li>
<li class="codeLI">{
</li>
<li class="codeLI">if(i%2!=0)
</li>
<li class="codeLI">sum=sum+i;
</li>
<li class="codeLI">else
</li>
<li class="codeLI">continue;
</li>
<li class="codeLI">}
</li>
<li class="codeLI">cout&lt;&lt;sum;
</li>
<li class="codeLI">getch();</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=45&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-calculate-sum-of-all-odd-numbers-upto-n/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
		<item>
		<title>write a program to displat table of a number</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-displat-table-of-a-number/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-displat-table-of-a-number/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:40:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[loop]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-displat-table-of-a-number/</guid>
		<description><![CDATA[A number is taken from user and its table upto n is displayed. Select To use this code as it is.. select and copy paste this code into code.cpp file #include&#60;iostream.h&#62; #include&#60;conio.h&#62; void main() { clrscr(); int n,m; cout&#60;&#60;&#8221;Please enter n: &#8220;; cin&#62;&#62;n; for (int i=1;i&#60;=10;i++) { m=n*i; cout&#60;&#60;n&#60;&#60;&#8221;*&#8221;&#60;&#60;i&#60;&#60;&#8221;=&#8221;&#60;&#60;m&#60;&#60;endl; } getch(); }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=44&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeHolder" class="codeHolder" style="width:500px;">A number is taken from user and its table upto n is displayed.</div>
<div id="codeHolder" class="codeHolder" style="width:500px;">
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">int n,m;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Please enter n: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">for (int i=1;i&lt;=10;i++)
</li>
<li class="codeLI">{
</li>
<li class="codeLI">m=n*i;
</li>
<li class="codeLI">cout&lt;&lt;n&lt;&lt;&#8221;*&#8221;&lt;&lt;i&lt;&lt;&#8221;=&#8221;&lt;&lt;m&lt;&lt;endl;
</li>
<li class="codeLI">}
</li>
<li class="codeLI">getch();
</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=44&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-displat-table-of-a-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
		<item>
		<title>write a profram to calculate power of a number</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-profram-to-calculate-power-of-a-number/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-profram-to-calculate-power-of-a-number/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:34:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[loop]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-profram-to-calculate-power-of-a-number/</guid>
		<description><![CDATA[A number and power to be calculated is taken from user.Power is calculated. Select To use this code as it is.. select and copy paste this code into code.cpp file #include&#60;iostream.h&#62; #include&#60;conio.h&#62; void main() { clrscr(); int n,x,y=1; cout&#60;&#60;&#8221;Please enter x: &#8220;; cin&#62;&#62;x; cout&#60;&#60;&#8221;Please enter n: &#8220;; cin&#62;&#62;n; for (int i=1;i&#60;=n;i++) y=y*x; cout&#60;&#60;y; getch(); }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=43&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeHolder" class="codeHolder" style="width:500px;">A number and power to be calculated is taken from user.Power is calculated.</p>
<div class="codeHeader">
</div>
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">int n,x,y=1;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Please enter x: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;x;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Please enter n: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">for (int i=1;i&lt;=n;i++)
</li>
<li class="codeLI">y=y*x;
</li>
<li class="codeLI">cout&lt;&lt;y;
</li>
<li class="codeLI">getch();</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=43&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-profram-to-calculate-power-of-a-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
		<item>
		<title>write a program to determine factorial of a number</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-determine-factorial-of-a-number/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-determine-factorial-of-a-number/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:32:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[loop]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-determine-factorial-of-a-number/</guid>
		<description><![CDATA[A number is taken from user and its factorial is given. Select To use this code as it is.. select and copy paste this code into code.cpp file #include&#60;iostream.h&#62; #include&#60;conio.h&#62; void main() { clrscr(); int n,fac=1; cout&#60;&#60;&#8221;Please enter a number: &#8220;; cin&#62;&#62;n; for (int i=1;i&#60;=n;i++) fac=fac*i; cout&#60;&#60;fac; getch(); }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=42&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeHolder" class="codeHolder" style="width:500px;">A number is taken from user and its factorial is given.</div>
<div id="codeHolder" class="codeHolder" style="width:500px;">
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">int n,fac=1;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Please enter a number: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">for (int i=1;i&lt;=n;i++)
</li>
<li class="codeLI">fac=fac*i;
</li>
<li class="codeLI">cout&lt;&lt;fac;
</li>
<li class="codeLI">
</li>
<li class="codeLI">getch();
</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=42&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-determine-factorial-of-a-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
		<item>
		<title>write a program to find sum of n numbers</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-find-sum-of-n-numbers/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-find-sum-of-n-numbers/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:27:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[numbers]]></category>
		<category><![CDATA[sum]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-find-sum-of-n-numbers/</guid>
		<description><![CDATA[A number n is taken from user. Sum of all natural numbers upto n is displayed. Select To use this code as it is.. select and copy paste this code into code.cpp file #include&#60;iostream.h&#62; #include&#60;conio.h&#62; void main() { clrscr(); int n,sum=0; cout&#60;&#60;&#8221;Please enter a number: &#8220;; cin&#62;&#62;n; for (int i=1;i&#60;=n;i++) sum=sum+i; cout&#60;&#60;sum; getch(); }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=41&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeHolder" class="codeHolder" style="width:500px;">A number n is taken from user.</div>
<div id="codeHolder" class="codeHolder" style="width:500px;">Sum of all natural numbers upto n is displayed.</div>
<div id="codeHolder" class="codeHolder" style="width:500px;">
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">int n,sum=0;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Please enter a number: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">for (int i=1;i&lt;=n;i++)
</li>
<li class="codeLI">sum=sum+i;
</li>
<li class="codeLI">cout&lt;&lt;sum;
</li>
<li class="codeLI">
</li>
<li class="codeLI">getch();
</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=41&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-find-sum-of-n-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
		<item>
		<title>write a program to check whether entered number is prime or not</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-check-whether-entered-number-is-prime-or-not/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-check-whether-entered-number-is-prime-or-not/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:24:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[else if]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[if else]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[numbers]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-check-whether-entered-number-is-prime-or-not/</guid>
		<description><![CDATA[Prime number: A natural number which has exactly two distinct natural number divisors: 1 and itself. A number is taken from user and is checked whether prime number or not. Select To use this code as it is.. select and copy paste this code into code.cpp file #include&#60;iostream.h&#62; #include&#60;conio.h&#62; void main() { clrscr(); int n,m; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=40&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>Prime number</b>: A natural number which has exactly two distinct natural number divisors: 1 and itself.
<div>A number is taken from user and is checked whether prime number or not.
<div id="codeHolder" class="codeHolder" style="width:500px;">
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">int n,m;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Please enter a number: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">for (int i=2;i&lt;=(n-1);i++)
</li>
<li class="codeLI">{
</li>
<li class="codeLI">if(n%i==0)
</li>
<li class="codeLI">{
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Not a prime&#8221;;
</li>
<li class="codeLI">break;
</li>
<li class="codeLI">}
</li>
<li class="codeLI">else
</li>
<li class="codeLI">{
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Prime&#8221;;
</li>
<li class="codeLI">break;
</li>
<li class="codeLI">}
</li>
<li class="codeLI">}
</li>
<li class="codeLI">getch();
</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=40&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-check-whether-entered-number-is-prime-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
		<item>
		<title>write a program to display fibonacci series upto n terms</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-display-fibonacci-series-upto-n-terms/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-display-fibonacci-series-upto-n-terms/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 13:19:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[numbers]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-display-fibonacci-series-upto-n-terms/</guid>
		<description><![CDATA[Fibonacci series:The first two Fibonacci numbers are 0 and 1, and each remaining number is the sum of the previous two e.g.: 0 1 1 2 3 5 8 13 21 &#8230;. A number n is taken from user and the series is displayed upto nth term. Select To use this code as it is.. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=39&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeHolder" class="codeHolder" style="width:500px;">Fibonacci series:The first two Fibonacci numbers are 0 and 1, and each remaining number is the sum of the previous two
<div>e.g.: 0 1 1 2 3 5 8 13 21 &#8230;.</div>
<div>A number n is taken from user and the series is displayed upto nth term.</div>
<div>
</div>
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">int a=0,b=1,c=0,n;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Enter the number of terms you wanna see: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">cout&lt;&lt;a&lt;&lt;&#8221; &#8220;&lt;&lt;b&lt;&lt;&#8221; &#8220;;
</li>
<li class="codeLI">for(int i=1;i&lt;=n-2;i++)
</li>
<li class="codeLI">{
</li>
<li class="codeLI">c=a+b;
</li>
<li class="codeLI">a=b;
</li>
<li class="codeLI">b=c;
</li>
<li class="codeLI">cout&lt;&lt;c&lt;&lt;&#8221; &#8220;;
</li>
<li class="codeLI">}
</li>
<li class="codeLI">getch();
</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=39&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-display-fibonacci-series-upto-n-terms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
		<item>
		<title>write a program to check whether entered number is palindrome or not</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-check-whether-entered-number-is-palindrome-or-not/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-check-whether-entered-number-is-palindrome-or-not/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 12:33:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[else if]]></category>
		<category><![CDATA[if]]></category>
		<category><![CDATA[if else]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[numbers]]></category>
		<category><![CDATA[while loop]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-check-whether-entered-number-is-palindrome-or-not/</guid>
		<description><![CDATA[Palindrome :A word or phrase that reads the same backward as forward A number is taken from user and then checks if the entered number is palindrome or not. Select To use this code as it is.. select and copy paste this code into code.cpp file #include&#60;iostream.h&#62; #include&#60;conio.h&#62; void main() { clrscr(); long int n,rev=0,m,num; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=37&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeHolder" class="codeHolder" style="width:500px;">Palindrome :A<span class="Apple-style-span" style="font-family:arial;font-size:13px;"> word or phrase that reads the same backward as forward </span></div>
<div id="codeHolder" class="codeHolder" style="width:500px;"><span class="Apple-style-span" style="font-family:arial;font-size:100%;"><span class="Apple-style-span" style="font-size:13px;">A number is taken from user and then checks if the entered number is palindrome or not.</span></span></div>
<div id="codeHolder" class="codeHolder" style="width:500px;"><span class="Apple-style-span" style="font-family:arial;font-size:100%;"><span class="Apple-style-span" style="font-size:13px;"><br />
</span></span>
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">long int n,rev=0,m,num;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;please enter a five digit no.: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">num=n;
</li>
<li class="codeLI">while(n&gt;0)
</li>
<li class="codeLI">{
</li>
<li class="codeLI">m=n%10;
</li>
<li class="codeLI">rev=rev*10+m;
</li>
<li class="codeLI">n=n/10;
</li>
<li class="codeLI">}
</li>
<li class="codeLI">cout&lt;&lt;rev&lt;&lt;endl;
</li>
<li class="codeLI">if (num==rev)
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Number is a palindrome&#8221;;
</li>
<li class="codeLI">else
</li>
<li class="codeLI">cout&lt;&lt;&#8221;Not a palindrome&#8221;;
</li>
<li class="codeLI">getch();
</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=37&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-check-whether-entered-number-is-palindrome-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
		<item>
		<title>write a program to reverse digits of a number</title>
		<link>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-reverse-digits-of-a-number/</link>
		<comments>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-reverse-digits-of-a-number/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 12:18:00 +0000</pubDate>
		<dc:creator>snehilkhanor</dc:creator>
				<category><![CDATA[cin]]></category>
		<category><![CDATA[cout]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[while loop]]></category>

		<guid isPermaLink="false">http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-reverse-digits-of-a-number/</guid>
		<description><![CDATA[A number is taken from the user number with reverse digits is displayed Select To use this code as it is.. select and copy paste this code into code.cpp file #include&#60;iostream.h&#62; #include&#60;conio.h&#62; void main() { clrscr(); long int n,rev=0,m; cout&#60;&#60;&#8221;please enter a five digit no.: &#8220;; cin&#62;&#62;n; while(n&#62;0) { m=n%10; rev=rev*10+m; n=n/10; } cout&#60;&#60;rev; getch(); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=36&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="codeHolder" class="codeHolder" style="width:500px;">A number is taken from the user  number with reverse digits is displayed</p>
<div class="codeHeader">
<span class="codeLink">Select</span> To use this code as it is.. select and copy paste this code into code.cpp file <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</div>
<div class="codeContent" style="display:block;width:500px;white-space:nowrap;">
<ol start="1">
<li class="codeLI">#include&lt;iostream.h&gt;</li>
<li class="codeLI">#include&lt;conio.h&gt;
</li>
<li class="codeLI">void main()
</li>
<li class="codeLI">{
</li>
<li class="codeLI">clrscr();
</li>
<li class="codeLI">long int n,rev=0,m;
</li>
<li class="codeLI">cout&lt;&lt;&#8221;please enter a five digit no.: &#8220;;
</li>
<li class="codeLI">cin&gt;&gt;n;
</li>
<li class="codeLI">while(n&gt;0)
</li>
<li class="codeLI">{
</li>
<li class="codeLI">m=n%10;
</li>
<li class="codeLI">rev=rev*10+m;
</li>
<li class="codeLI">n=n/10;
</li>
<li class="codeLI">}
</li>
<li class="codeLI">cout&lt;&lt;rev;
</li>
<li class="codeLI">getch();
</li>
<li class="codeLI">}</li>
</ol></div>
</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wapcpp.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wapcpp.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wapcpp.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wapcpp.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wapcpp.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wapcpp.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wapcpp.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wapcpp.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wapcpp.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wapcpp.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wapcpp.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wapcpp.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wapcpp.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wapcpp.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wapcpp.wordpress.com&amp;blog=8488919&amp;post=36&amp;subd=wapcpp&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wapcpp.wordpress.com/2009/07/08/write-a-program-to-reverse-digits-of-a-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/15864162ab1420114eb44f54f7ee2a91?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">snehilkhanor</media:title>
		</media:content>
	</item>
	</channel>
</rss>
