<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>c-program &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/c-program/</link>
	<description>Feed of posts on WordPress.com tagged "c-program"</description>
	<pubDate>Fri, 24 May 2013 02:20:17 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Progrm to print pyramid 1 ]]></title>
<link>http://prashantyadav1.wordpress.com/2012/10/03/to-print-series-of-number-using-nested-loop/</link>
<pubDate>Wed, 03 Oct 2012 08:36:26 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/10/03/to-print-series-of-number-using-nested-loop/</guid>
<description><![CDATA[#include&lt;iostream&gt; using namespace std; int main() { int n; cout&lt;&lt;&#8221;Enter the numbe]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream&#62;<br />
using namespace std;<br />
int main()<br />
{<br />
int n;<br />
cout&#60;&#60;&#8221;Enter the number &#8220;;<br />
cin&#62;&#62;n;<br />
for(int i=1;i&#60;=n;i++)<br />
{<br />
for(int j=1;j&#60;=i;j++)<br />
{<br />
cout&#60;&#60;j&#60;&#60;&#8221; &#8220;;<br />
}<br />
cout&#60;&#60;endl;<br />
return 0;<br />
}</p>
<p><a href="http://prashantyadav1.files.wordpress.com/2012/10/p0yramid.png"><img class="aligncenter size-full wp-image-146" title="p0yramid" alt="" src="http://prashantyadav1.files.wordpress.com/2012/10/p0yramid.png?w=627&#038;h=281" height="281" width="627" /></a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[5% Increase]]></title>
<link>http://codepuppy.wordpress.com/2012/10/01/5-increase/</link>
<pubDate>Mon, 01 Oct 2012 20:27:11 +0000</pubDate>
<dc:creator>aroniasty</dc:creator>
<guid>http://codepuppy.wordpress.com/2012/10/01/5-increase/</guid>
<description><![CDATA[#define _PROCENT 0.05f #include &lt;stdio.h&gt; int main(void) { float kwota, wynik; printf("Cash am]]></description>
<content:encoded><![CDATA[<pre style='color:#000000;background:#f1f0f0;'><span style='color:#004a43;'>#</span><span style='color:#004a43;'>define</span><span style='color:#004a43;'> _PROCENT 0</span><span style='color:#806030;'>.</span><span style='color:#004a43;'>05f</span>
<span style='color:#004a43;'>#</span><span style='color:#004a43;'>include </span><span style='color:#800000;'>&#60;</span><span style='color:#40015a;'>stdio.h</span><span style='color:#800000;'>&#62;</span>
<span style='color:#400000;font-weight:bold;'>int</span> <span style='color:#800000;font-weight:bold;'>main</span><span style='color:#806030;'>(</span><span style='color:#400000;font-weight:bold;'>void</span><span style='color:#806030;'>)</span>
<span style='color:#806030;'>{</span>
  <span style='color:#400000;font-weight:bold;'>float</span> kwota<span style='color:#806030;'>,</span> wynik<span style='color:#806030;'>;</span>

  <span style='color:#800040;'>printf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#e60000;'>Cash amount: </span><span style='color:#800000;'>"</span><span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>
  <span style='color:#800040;'>scanf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#0f6900;'>%f</span><span style='color:#800000;'>"</span><span style='color:#806030;'>,</span> <span style='color:#806030;'>&#38;</span>kwota<span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>
  wynik <span style='color:#806030;'>=</span> <span style='color:#806030;'>(</span>kwota <span style='color:#806030;'>*</span> _PROCENT<span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>
  <span style='color:#800040;'>printf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#e60000;'>5% increase: </span><span style='color:#0f6900;'>%.2f</span><span style='color:#0f6900;'>\n</span><span style='color:#800000;'>"</span><span style='color:#806030;'>,</span> kwota <span style='color:#806030;'>+</span> wynik<span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>

  <span style='color:#400000;font-weight:bold;'>return</span> <span style='color:#c00000;'>0</span><span style='color:#806030;'>;</span>
<span style='color:#806030;'>}</span>
</pre>
<pre style='color:#000000;background:#ffffff;'>How come.. I love math but I was never good at it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> 
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Volume of a Sphere ver.2]]></title>
<link>http://codepuppy.wordpress.com/2012/10/01/volume-of-a-sphere-ver-2/</link>
<pubDate>Mon, 01 Oct 2012 18:43:04 +0000</pubDate>
<dc:creator>aroniasty</dc:creator>
<guid>http://codepuppy.wordpress.com/2012/10/01/volume-of-a-sphere-ver-2/</guid>
<description><![CDATA[#define NUMBER_PI 3.14159f #include &lt;stdio.h&gt; int main(void) { float radius, volume; printf("R]]></description>
<content:encoded><![CDATA[<pre style='color:#d1d1d1;background:#000000;'><span style='color:#008073;'>#</span><span style='color:#008073;'>define</span><span style='color:#008073;'> NUMBER_PI 3</span><span style='color:#d2cd86;'>.</span><span style='color:#008073;'>14159f  </span>
<span style='color:#008073;'>#</span><span style='color:#008073;'>include </span><span style='color:#02d045;'>&#60;</span><span style='color:#40015a;'>stdio.h</span><span style='color:#02d045;'>&#62;</span>
<span style='color:#e66170;font-weight:bold;'>int</span> <span style='color:#e66170;font-weight:bold;'>main</span><span style='color:#d2cd86;'>(</span><span style='color:#e66170;font-weight:bold;'>void</span><span style='color:#d2cd86;'>)</span>
<span style='color:#b060b0;'>{</span>
  <span style='color:#e66170;font-weight:bold;'>float</span> radius<span style='color:#d2cd86;'>,</span> volume<span style='color:#b060b0;'>;</span>

  <span style='color:#e66170;font-weight:bold;'>printf</span><span style='color:#d2cd86;'>(</span><span style='color:#02d045;'>"</span><span style='color:#00c4c4;'>Radius: </span><span style='color:#02d045;'>"</span><span style='color:#d2cd86;'>)</span><span style='color:#b060b0;'>;</span>
  <span style='color:#e66170;font-weight:bold;'>scanf</span><span style='color:#d2cd86;'>(</span><span style='color:#02d045;'>"</span><span style='color:#008080;'>%f</span><span style='color:#02d045;'>"</span><span style='color:#d2cd86;'>,</span> <span style='color:#d2cd86;'>&#38;</span>radius<span style='color:#d2cd86;'>)</span><span style='color:#b060b0;'>;</span>                    
  volume <span style='color:#d2cd86;'>=</span> <span style='color:#d2cd86;'>(</span><span style='color:#009f00;'>4.0</span><span style='color:#006600;'>f</span> <span style='color:#d2cd86;'>/</span> <span style='color:#009f00;'>3.0</span><span style='color:#006600;'>f</span><span style='color:#d2cd86;'>)</span> <span style='color:#d2cd86;'>*</span> NUMBER_PI <span style='color:#d2cd86;'>*</span> <span style='color:#d2cd86;'>(</span>radius <span style='color:#d2cd86;'>*</span> radius <span style='color:#d2cd86;'>*</span> radius<span style='color:#d2cd86;'>)</span><span style='color:#b060b0;'>;</span>

  <span style='color:#e66170;font-weight:bold;'>printf</span><span style='color:#d2cd86;'>(</span><span style='color:#02d045;'>"</span><span style='color:#00c4c4;'>Volume of a sphere: </span><span style='color:#008080;'>%.2f</span><span style='color:#008080;'>\n</span><span style='color:#02d045;'>"</span><span style='color:#d2cd86;'>,</span> volume<span style='color:#d2cd86;'>)</span><span style='color:#b060b0;'>;</span>

  <span style='color:#e66170;font-weight:bold;'>return</span> <span style='color:#008c00;'>0</span><span style='color:#b060b0;'>;</span>
<span style='color:#b060b0;'>}</span>
</pre>
<pre style='color:#55cc66;background:#001800;'>This one read data from the user.
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Detect Endianness of a System]]></title>
<link>http://phoxis.org/2012/10/01/detect-endianness-of-a-system/</link>
<pubDate>Mon, 01 Oct 2012 15:11:38 +0000</pubDate>
<dc:creator>phoxis</dc:creator>
<guid>http://phoxis.org/2012/10/01/detect-endianness-of-a-system/</guid>
<description><![CDATA[In a previous post &#8220;Little and Big Endian conversion&#8221; i have briefly discussed about the]]></description>
<content:encoded><![CDATA[In a previous post &#8220;Little and Big Endian conversion&#8221; i have briefly discussed about the]]></content:encoded>
</item>
<item>
<title><![CDATA[How to Calculate the Volume of a Sphere with a C program]]></title>
<link>http://codepuppy.wordpress.com/2012/09/30/variables/</link>
<pubDate>Sun, 30 Sep 2012 21:15:55 +0000</pubDate>
<dc:creator>aroniasty</dc:creator>
<guid>http://codepuppy.wordpress.com/2012/09/30/variables/</guid>
<description><![CDATA[#define NUMBER_PI 3.14 #include &lt;stdio.h&gt; int main(void) { int radius; radius = 10; float volu]]></description>
<content:encoded><![CDATA[<pre style='color:#000000;background:#f1f0f0;'><span style='color:#004a43;'>#</span><span style='color:#004a43;'>define</span><span style='color:#004a43;'> NUMBER_PI 3</span><span style='color:#806030;'>.</span><span style='color:#004a43;'>14</span>
<span style='color:#004a43;'>#</span><span style='color:#004a43;'>include </span><span style='color:#800000;'>&#60;</span><span style='color:#40015a;'>stdio.h</span><span style='color:#800000;'>&#62;</span>
<span style='color:#400000;font-weight:bold;'>int</span> <span style='color:#800000;font-weight:bold;'>main</span><span style='color:#806030;'>(</span><span style='color:#400000;font-weight:bold;'>void</span><span style='color:#806030;'>)</span>
<span style='color:#806030;'>{</span>
  <span style='color:#400000;font-weight:bold;'>int</span> radius<span style='color:#806030;'>;</span>
  radius <span style='color:#806030;'>=</span> <span style='color:#c00000;'>10</span><span style='color:#806030;'>;</span>
  <span style='color:#400000;font-weight:bold;'>float</span> volume<span style='color:#806030;'>;</span> 
  volume <span style='color:#806030;'>=</span><span style='color:#806030;'>(</span> <span style='color:#800000;'>4.0</span><span style='color:#006600;'>f</span> <span style='color:#806030;'>/</span> <span style='color:#800000;'>3.0</span><span style='color:#006600;'>f</span> <span style='color:#806030;'>)</span> <span style='color:#806030;'>*</span> NUMBER_PI <span style='color:#806030;'>*</span> <span style='color:#806030;'>(</span>radius <span style='color:#806030;'>*</span> radius <span style='color:#806030;'>*</span> radius<span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>

  <span style='color:#800040;'>printf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#e60000;'>Volume of sphere with radius 10: </span><span style='color:#0f6900;'>%.2f</span><span style='color:#0f6900;'>\n</span><span style='color:#800000;'>"</span><span style='color:#806030;'>,</span>volume<span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>

  <span style='color:#400000;font-weight:bold;'>return</span> <span style='color:#c00000;'>0</span><span style='color:#806030;'>;</span>
<span style='color:#806030;'>}</span>
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Check mark.]]></title>
<link>http://codepuppy.wordpress.com/2012/09/29/15/</link>
<pubDate>Sat, 29 Sep 2012 23:03:49 +0000</pubDate>
<dc:creator>aroniasty</dc:creator>
<guid>http://codepuppy.wordpress.com/2012/09/29/15/</guid>
<description><![CDATA[#include &lt;stdio.h&gt; int main(void) { printf(" *\n"); printf(" *\n"); printf(" *\n"); printf("*]]></description>
<content:encoded><![CDATA[<pre style='color:#000000;background:#f1f0f0;'><span style='color:#004a43;'>#</span><span style='color:#004a43;'>include </span><span style='color:#800000;'>&#60;</span><span style='color:#40015a;'>stdio.h</span><span style='color:#800000;'>&#62;</span>
<span style='color:#400000;font-weight:bold;'>int</span> <span style='color:#800000;font-weight:bold;'>main</span><span style='color:#806030;'>(</span><span style='color:#400000;font-weight:bold;'>void</span><span style='color:#806030;'>)</span>
<span style='color:#806030;'>{</span>
  <span style='color:#800040;'>printf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#e60000;'>       *</span><span style='color:#0f6900;'>\n</span><span style='color:#800000;'>"</span><span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>
  <span style='color:#800040;'>printf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#e60000;'>      *</span><span style='color:#0f6900;'>\n</span><span style='color:#800000;'>"</span><span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>
  <span style='color:#800040;'>printf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#e60000;'>     *</span><span style='color:#0f6900;'>\n</span><span style='color:#800000;'>"</span><span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>
  <span style='color:#800040;'>printf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#e60000;'>*   *</span><span style='color:#0f6900;'>\n</span><span style='color:#800000;'>"</span><span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>
  <span style='color:#800040;'>printf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#e60000;'> * *</span><span style='color:#0f6900;'>\n</span><span style='color:#800000;'>"</span><span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>
  <span style='color:#800040;'>printf</span><span style='color:#806030;'>(</span><span style='color:#800000;'>"</span><span style='color:#e60000;'>  *</span><span style='color:#0f6900;'>\n</span><span style='color:#800000;'>"</span><span style='color:#806030;'>)</span><span style='color:#806030;'>;</span>

  <span style='color:#400000;font-weight:bold;'>return</span> <span style='color:#c00000;'>0</span><span style='color:#806030;'>;</span>
<span style='color:#806030;'>}</span>
</pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Hello world!]]></title>
<link>http://codepuppy.wordpress.com/2012/09/29/hello-world/</link>
<pubDate>Sat, 29 Sep 2012 19:40:22 +0000</pubDate>
<dc:creator>aroniasty</dc:creator>
<guid>http://codepuppy.wordpress.com/2012/09/29/hello-world/</guid>
<description><![CDATA[#include &lt;stdio.h&gt; int main (void){ printf("Hello, world!\n"); return 0; }]]></description>
<content:encoded><![CDATA[<pre style="color:#000000;background:#f1f0f0;"><span style="color:#004a43;">#</span><span style="color:#004a43;">include </span><span style="color:#800000;">&#60;</span><span style="color:#40015a;">stdio.h</span><span style="color:#800000;">&#62;</span>
<span style="color:#400000;font-weight:bold;">int</span> <span style="color:#800000;font-weight:bold;">main</span> <span style="color:#806030;">(</span><span style="color:#400000;font-weight:bold;">void</span><span style="color:#806030;">)</span><span style="color:#806030;">{</span>     

  <span style="color:#800040;">printf</span><span style="color:#806030;">(</span><span style="color:#800000;">"</span><span style="color:#e60000;">Hello, world!</span><span style="color:#0f6900;">\n</span><span style="color:#800000;">"</span><span style="color:#806030;">)</span><span style="color:#806030;">;</span>  

  <span style="color:#400000;font-weight:bold;">return</span> <span style="color:#c00000;">0</span><span style="color:#806030;">;</span>  

<span style="color:#806030;">}</span></pre>
]]></content:encoded>
</item>
<item>
<title><![CDATA[To convert binary to decimal and vice versa.]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/24/to-convert-binary-to-decimal-and-vice-versa/</link>
<pubDate>Mon, 24 Sep 2012 08:10:28 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/24/to-convert-binary-to-decimal-and-vice-versa/</guid>
<description><![CDATA[#include&lt;iostream.h&gt; #include&lt;math.h&gt; using namespace std; int main() { int num,n,sum=0,]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream.h&#62;<br />
#include&#60;math.h&#62;<br />
using namespace std;<br />
int main()<br />
{<br />
int num,n,sum=0,remd,i=0;<br />
cout&#60;&#60;&#8221;enter the choice:&#8221;&#60;&#60;&#8221;\n&#8221;;<br />
cout&#60;&#60;&#8221;1.binary to decimal&#8221;&#60;&#60;&#8221;\n&#8221;;<br />
cout&#60;&#60;&#8221;2.decimal to binary&#8221;&#60;&#60;&#8221;\n&#8221;;<br />
cin&#62;&#62;n;<br />
if(n==1)<br />
{<br />
cout&#60;&#60;&#8221;enter the number in binary:&#8221;;<br />
cin&#62;&#62;num;</p>
<p>while(num&#62;0)<br />
{<br />
remd=num%10;<br />
sum=sum+remd*pow(2,i);<br />
num/=10;<br />
i++;</p>
<p>}<br />
cout&#60;&#60;&#8221;the decimal number is &#8220;&#60;&#60;sum;</p>
<p>}<br />
if(n==2)<br />
{<br />
cout&#60;&#60;&#8221;enter the number in decimal:&#8221;;<br />
cin&#62;&#62;num;</p>
<p>while(num&#62;0)<br />
{<br />
remd=num%2;<br />
sum=sum + remd*pow(10,i);<br />
num=num/2;<br />
i++;</p>
<p>}<br />
cout&#60;&#60;&#8221;the binary number is &#8220;&#60;&#60;sum;<br />
}</p>
<p>return 0;<br />
}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Workspace]]></title>
<link>http://ishwerdas.wordpress.com/2012/09/24/workspace/</link>
<pubDate>Mon, 24 Sep 2012 05:11:36 +0000</pubDate>
<dc:creator>G.S</dc:creator>
<guid>http://ishwerdas.wordpress.com/2012/09/24/workspace/</guid>
<description><![CDATA[Today in the morning  i was messing with a c code. Then I calmed my mind by listening to a soft musi]]></description>
<content:encoded><![CDATA[<p>Today in the morning  i was messing with a c code. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Then I calmed my mind by listening to a soft music.Then i suddenly realized the defect in my code, there was just a missing semicolon(;)&#8230;</p>
<p><a href="http://ishwerdas.files.wordpress.com/2012/09/screenshot-from-2012-09-24-101847.png"><img class="aligncenter size-medium wp-image-100" title="display" src="http://ishwerdas.files.wordpress.com/2012/09/screenshot-from-2012-09-24-101847.png?w=490&#038;h=275" alt="" width="490" height="275" /></a></p>
<p>.I managed to open many things in just one screen. Thanks to my Samsung LCD. The funda of choosing the correct LCD was cleared to my mind. The following points should be considered when buying a Display Unit:</p>
<p><!--more--></p>
<ul>
<li>First it should be a LCD or a LED It should be never a CRT or a TFT.</li>
<li>Its size should be enough to open many windows If you are developer its a most important point to be considered while buying a Display Unit</li>
<li>It should have a great range of Brightness,so that you can enjoy movies at a high brightness and program or do any other work at a considerable low brghtness</li>
<li>PRECAUTION:Never sit on work on computer for more than 25 minutes. After every 25 minutes there should be a break of 5 minutes. I too considered it a funny and not so important point, but now i have the output of that continuous sitting.I got a piece of spectacles to be worn everyday :/ . Take care of your beautiful eyes <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
]]></content:encoded>
</item>
<item>
<title><![CDATA[To find the sum of the digit of a number]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/22/to-find-the-sum-of-the-digit-of-a-number/</link>
<pubDate>Sat, 22 Sep 2012 08:46:02 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/22/to-find-the-sum-of-the-digit-of-a-number/</guid>
<description><![CDATA[#include&lt;iostream&gt; using namespace std; int main() { int num,sum=0,remd; cout&lt;&lt;&#8221;en]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream&#62;<br />
using namespace std;<br />
int main()<br />
{<br />
int num,sum=0,remd;<br />
cout&#60;&#60;&#8221;enter the number:&#8221;;<br />
cin&#62;&#62;num;<br />
while(num&#62;0)<br />
{<br />
remd=num%10;<br />
sum+=remd;<br />
num/=10;<br />
}<br />
cout&#60;&#60;&#8221;the sum is &#8220;&#60;&#60;sum;</p>
<p>}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[To find the reverse of a number]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/22/to-find-the-reverse-of-a-number/</link>
<pubDate>Sat, 22 Sep 2012 08:36:08 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/22/to-find-the-reverse-of-a-number/</guid>
<description><![CDATA[#include&lt;iostream&gt; using namespace std; int main() { int num,sum=0,remd; cout&lt;&lt;&#8221;en]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream&#62;<br />
using namespace std;<br />
int main()<br />
{<br />
int num,sum=0,remd;<br />
cout&#60;&#60;&#8221;enter the number:&#8221;;<br />
cin&#62;&#62;num;<br />
while(num&#62;0)<br />
{<br />
remd=num%10;<br />
sum=remd+sum*10;<br />
num/=10;<br />
}<br />
cout&#60;&#60;&#8221;the sum is &#8220;&#60;&#60;sum;<br />
}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[To find the factorial of a number]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/22/to-find-the-factorial-of-a-number/</link>
<pubDate>Sat, 22 Sep 2012 08:28:55 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/22/to-find-the-factorial-of-a-number/</guid>
<description><![CDATA[#include&lt;iostream&gt; using namespace std; int main() { long i, n, fact=1; cout&lt;&lt;&#8221;Ent]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream&#62;<br />
using namespace std;<br />
int main()<br />
{<br />
long i, n, fact=1;<br />
cout&#60;&#60;&#8221;Enter the number:&#8221;;<br />
cin&#62;&#62;n;<br />
i=n;<br />
while(n&#62;0)<br />
{fact=fact*n;<br />
&#8211;n;<br />
cout&#60;&#60;n&#60;&#60;&#8221; X &#8220;;<br />
}<br />
cout&#60;&#60;&#8221;\n&#8221;&#60;&#60;&#8221;factorial of &#8220;&#60;&#60;i&#60;&#60;&#8221; is &#8220;&#60;&#60;fact&#60;&#60;endl;<br />
return 0;<br />
}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[To find the n natural number]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/22/to-find-the-n-natural-number/</link>
<pubDate>Sat, 22 Sep 2012 08:23:18 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/22/to-find-the-n-natural-number/</guid>
<description><![CDATA[#include&lt;iostream&gt; using namespace std; int main () { int a, n, sum=0,i; cout&lt;&lt;&#8221;Ma]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream&#62;<br />
using namespace std;<br />
int main ()<br />
{<br />
int a, n, sum=0,i;<br />
cout&#60;&#60;&#8221;Make your choice:&#8221;&#60;&#60;&#8221;\n&#8221;;<br />
cout&#60;&#60;&#8221;1.Find n natural number and their sum&#8221;&#60;&#60;&#8221;\n&#8221;;<br />
cout&#60;&#60;&#8221;2.Find n even natural number and their sum&#8221;&#60;&#60;&#8221;\n&#8221;;<br />
cout&#60;&#60;&#8221;3.Find n odd natural number and their sum&#8221;&#60;&#60;&#8221;\n&#8221;;<br />
cin&#62;&#62;a;<br />
if(a==1)<br />
{<br />
int n,i=1;<br />
cout&#60;&#60;&#8221;Enter how many natural number?&#8221;;<br />
cin&#62;&#62;n;<br />
while(i&#60;=n )<br />
{<br />
cout&#60;&#60;&#8221;, &#8220;&#60;&#60;i;<br />
sum+=i;<br />
i++;<br />
}<br />
cout&#60;&#60;&#8221;\n&#8221;&#60;&#60;&#8221;the sum of first &#8220;&#60;&#60;n&#60;&#60;&#8221; natural number is:&#8221;&#60;&#60;sum&#60;&#60;&#8221;\n&#8221;;<br />
}<br />
if(a==2)<br />
{<br />
int n,i=2;<br />
cout&#60;&#60;&#8221;Enter how many even natural number?&#8221;;<br />
cin&#62;&#62;n;<br />
while(i&#60;=n )<br />
{<br />
cout&#60;&#60;i&#60;&#60;&#8221;, &#8220;;<br />
sum+=i;<br />
i=i+2;<br />
}<br />
cout&#60;&#60;&#8221;\n&#8221;&#60;&#60;&#8221;the sum of first &#8220;&#60;&#60;n&#60;&#60;&#8221; even natural number is:&#8221;&#60;&#60;sum&#60;&#60;&#8221;\n&#8221;;<br />
}<br />
if(a==3)<br />
{<br />
int n,i=1;<br />
cout&#60;&#60;&#8221;Enter how many odd natural number?&#8221;;<br />
cin&#62;&#62;n;<br />
while(i&#60;=n )<br />
{<br />
cout&#60;&#60;i&#60;&#60;&#8221;, &#8220;;<br />
sum+=i;<br />
i=i+2;<br />
}<br />
cout&#60;&#60;&#8221;\n&#8221;&#60;&#60;&#8221;the sum of first &#8220;&#60;&#60;n&#60;&#60;&#8221;odd natural number is:&#8221;&#60;&#60;sum&#60;&#60;&#8221;\n&#8221;;<br />
}<br />
else<br />
cout&#60;&#60;&#8221;wrong operation&#8221;&#60;&#60;endl;</p>
<p>return 0;<br />
}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[C Q&amp;A #3: When ((x == x + 5) &amp;&amp; (y != y)) is true.]]></title>
<link>http://phoxis.org/2012/09/19/c-qa-3-when-x-x-5-y-y-is-true/</link>
<pubDate>Wed, 19 Sep 2012 03:11:45 +0000</pubDate>
<dc:creator>phoxis</dc:creator>
<guid>http://phoxis.org/2012/09/19/c-qa-3-when-x-x-5-y-y-is-true/</guid>
<description><![CDATA[The post heading gives an expression which is a contradiction and not possible. In general yes it is]]></description>
<content:encoded><![CDATA[The post heading gives an expression which is a contradiction and not possible. In general yes it is]]></content:encoded>
</item>
<item>
<title><![CDATA[Knowing ctemplate]]></title>
<link>http://12oy.wordpress.com/2012/09/16/knowing-ctemplate/</link>
<pubDate>Sun, 16 Sep 2012 12:35:39 +0000</pubDate>
<dc:creator>Bambang pramusintha</dc:creator>
<guid>http://12oy.wordpress.com/2012/09/16/knowing-ctemplate/</guid>
<description><![CDATA[CTemplate is a simple but powerful template language for C++. It emphasizes separating logic from pr]]></description>
<content:encoded><![CDATA[CTemplate is a simple but powerful template language for C++. It emphasizes separating logic from pr]]></content:encoded>
</item>
<item>
<title><![CDATA[Program to find the remarks]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/15/program-to-find-the-remarks/</link>
<pubDate>Sat, 15 Sep 2012 08:22:24 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/15/program-to-find-the-remarks/</guid>
<description><![CDATA[#include&lt;iostream.h&gt; int main() { int a; start: system (“cls”); cout&lt;&lt;”enter the number”]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream.h&#62;<br />
int main()<br />
{<br />
int a;<br />
start:<br />
system (“cls”);<br />
cout&#60;&#60;”enter the number”;<br />
cin&#62;&#62;a;<br />
switch(a)<br />
{<br />
case 1:<br />
cout&#60;&#60;”good”&#60;&#60;endl;<br />
break;<br />
case 2:<br />
cout&#60;&#60;”very good”&#60;&#60;endl;<br />
break;<br />
case 3:<br />
cout&#60;&#60;”excelent”&#60;&#60;endl;<br />
break;<br />
case 4:<br />
cout&#60;&#60;”good job”&#60;&#60;endl;<br />
break;<br />
case 5:<br />
cout&#60;&#60;”good pay”&#60;&#60;endl;<br />
break;<br />
default:<br />
cout&#60;&#60;”wrong input”;<br />
break;<br />
}<br />
system(“pause”);<br />
goto start;<br />
return 0;<br />
}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Finding days of week using case]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/15/finding-days-of-week-using-case/</link>
<pubDate>Sat, 15 Sep 2012 08:16:04 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/15/finding-days-of-week-using-case/</guid>
<description><![CDATA[#include&lt;iostream.h&gt; int main() { int n; cout&lt;&lt;”Enter the day no.:”; cin&gt;&gt;n; switc]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream.h&#62;<br />
int main()<br />
{<br />
int n;<br />
cout&#60;&#60;”Enter the day no.:”;<br />
cin&#62;&#62;n;<br />
switch(n)<br />
{<br />
case 1:<br />
cout&#60;&#60;”Monday”;<br />
break;<br />
case 2:<br />
cout&#60;&#60;”Tuesday”;<br />
break;<br />
case 3:<br />
cout&#60;&#60;”Wednesday”;<br />
break;<br />
case 4:<br />
cout&#60;&#60;”Thursday”;<br />
break;<br />
case 5:<br />
cout&#60;&#60;”Friday”;<br />
case 6:<br />
cout&#60;&#60;”Saturday”;<br />
break;<br />
case 7:<br />
cout&#60;&#60;”Sunday”;<br />
break;<br />
default:<br />
cout&#60;&#60;”Invalid Day”;<br />
}<br />
}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Arithematic calculator using case]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/15/arithematic-calculator-using-case/</link>
<pubDate>Sat, 15 Sep 2012 08:08:10 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/15/arithematic-calculator-using-case/</guid>
<description><![CDATA[#include&lt;iostream&gt; using namespace std; int main() { int x ,y; char ch; cout&lt;&lt;&#8221;ent]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream&#62;<br />
using namespace std;<br />
int main()<br />
{<br />
int x ,y;<br />
char ch;<br />
cout&#60;&#60;&#8221;enter the first number: &#8220;;<br />
cin&#62;&#62;x;<br />
cout&#60;&#60;&#8221;enter the second number: &#8220;;<br />
cin&#62;&#62;y;<br />
cout&#60;&#60;&#8221;enter an operator + , &#8211; , * , /:&#8221;&#60;&#60;&#8221;\n&#8221;;<br />
cin&#62;&#62;ch;<br />
switch(ch)<br />
{<br />
case  &#8216;+&#8217;:<br />
cout&#60;&#60;x+y;<br />
break;<br />
case  &#8216;-&#8217;:<br />
cout&#60;&#60;x-y;<br />
break;<br />
case  &#8216;*&#8217;:<br />
cout&#60;&#60;x*y;<br />
break;<br />
case  &#8216;/&#8217;:<br />
cout&#60;&#60;(float)x/y;<br />
break;<br />
}<br />
return 0;<br />
}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Programe to check what type of character.]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/11/program-6/</link>
<pubDate>Tue, 11 Sep 2012 06:27:24 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/11/program-6/</guid>
<description><![CDATA[#include &lt;iostream.h&gt; int main() { char a; cout&lt;&lt;”enter the character:”; cin&gt;&gt;a; i]]></description>
<content:encoded><![CDATA[<p>#include &#60;iostream.h&#62;<br />
int main()<br />
{<br />
char a;<br />
cout&#60;&#60;”enter the character:”;</p>
<p>cin&#62;&#62;a;<br />
if(a&#62;=65&#38;&#38;a&#60;=90)<br />
cout&#60;&#60;”the character is a upper case alphabet”;</p>
<p>else if(a&#62;=97&#38;&#38;a&#60;=122)<br />
cout&#60;&#60;”the character is a lower case alphabet”;</p>
<p>else if(a&#62;=47&#38;&#38;a&#60;=56)<br />
cout&#60;&#60;”the character is a digit”;<br />
else<br />
cout&#60;&#60;”it’s a special character”;<br />
return 0;<br />
}</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Program for the conversion of temperature from Fahrenheit to Celsius and vice verse]]></title>
<link>http://prashantyadav1.wordpress.com/2012/09/08/program-5/</link>
<pubDate>Sat, 08 Sep 2012 11:36:20 +0000</pubDate>
<dc:creator>prashantyadav1</dc:creator>
<guid>http://prashantyadav1.wordpress.com/2012/09/08/program-5/</guid>
<description><![CDATA[#include&lt;iostream&gt; using namespace std; int main() { int x; double temp, conv; cout&lt;&lt;]]></description>
<content:encoded><![CDATA[<p>#include&#60;iostream&#62;</p>
<p>using namespace std;</p>
<p>int main()</p>
<p>{</p>
<p>int x;</p>
<p>double temp, conv;</p>
<p>cout&#60;&#60;&#8221;Temperature conversion menu&#8221;&#60;&#60;&#8221;\n&#8221;;</p>
<p>cout&#60;&#60;&#8221;1.Fahrenheit to celsuis&#8221;&#60;&#60;&#8221;\n&#8221;;</p>
<p>cout&#60;&#60;&#8221;2.celsuis to fahrenheit&#8221;&#60;&#60;&#8221;\n&#8221;;</p>
<p>cout&#60;&#60;&#8221;enter your choice:&#8221;;</p>
<p>cin&#62;&#62;x;</p>
<p>if(x==1)</p>
<p>{</p>
<p>cout&#60;&#60;&#8221;\n&#8221;&#60;&#60;&#8221;enter temperature in fahrenheit:&#8221;&#60;&#60;&#8221;\n&#8221;;</p>
<p>cin&#62;&#62;temp;</p>
<p>conv =(temp-32)/1.8;</p>
<p>cout&#60;&#60;&#8221;the temperature in celsius is&#8221;&#60;&#60;conv&#60;&#60;&#8221;\n&#8221;;</p>
<p>}</p>
<p>else if(x==2)</p>
<p>{</p>
<p>cout&#60;&#60;&#8221;\n&#8221;&#60;&#60;&#8221;enter temperature in celsius:&#8221;&#60;&#60;&#8221;\n&#8221;;</p>
<p>cin&#62;&#62;temp;</p>
<p>conv=(temp*1.8)/+32;</p>
<p>cout&#60;&#60;&#8221;the temperature in Fahrenheit is&#8221;&#60;&#60;conv&#60;&#60;&#8221;\n&#8221;;</p>
<p>}</p>
<p>return 0;</p>
<p>}</p>
]]></content:encoded>
</item>

</channel>
</rss>
