<?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: Finding Fullness quotient of a number</title>
	<atom:link href="http://eXclusiveMinds.com/2009/12/12/finding-fullness-quotient-of-a-number/feed/" rel="self" type="application/rss+xml" />
	<link>http://eXclusiveMinds.com/2009/12/12/finding-fullness-quotient-of-a-number/</link>
	<description>eXclusive resource for programmers, developers and designers</description>
	<lastBuildDate>Fri, 28 May 2010 21:37:17 +1200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mukul Gupta</title>
		<link>http://eXclusiveMinds.com/2009/12/12/finding-fullness-quotient-of-a-number/comment-page-1/#comment-791</link>
		<dc:creator>Mukul Gupta</dc:creator>
		<pubDate>Fri, 11 Dec 2009 19:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://eXclusiveMinds.com/?p=353#comment-791</guid>
		<description>Here&#039;s Solution in C:
&lt;pre lang=&quot;csharp&quot; line=&quot;1&quot;&gt;
# include 
# include 
int fullnessQuotient (int n)
{
	 int count = 0;
	 int temp;
	 if (n &lt;0) 
	      return -1;
	 for (int base = 2; base  0)
			 {
					 if (temp% base== 0)
					 {
					 count++; 
					 break;
					 }
					 temp = temp / base;
			 }

	 {
	 return 8-count;
}
int main ()
{
	 int num;
	 printf( &quot;Enter the number:&quot;);
	 scanf( &quot;% d&quot;, &amp; num);
	 printf( &quot;the fullnessQuotient of% d is% d \ n&quot;, num, fullnessQuotient(num));
	 getch();
	 return 0;
} 
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Here&#8217;s Solution in C:</p>

<div class="wp_syntax"><table><tr><td><div class="code"><pre class="csharp" style="font-family:Consolas; monospace;"><span style="color: #008080;"># include </span>
<span style="color: #008080;"># include </span>
<span style="color: #FF0000;">int</span> fullnessQuotient <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> n<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	 <span style="color: #FF0000;">int</span> count <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
	 <span style="color: #FF0000;">int</span> temp<span style="color: #008000;">;</span>
	 <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>n <span style="color: #008000;">&lt;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span> 
	      <span style="color: #0600FF;">return</span> <span style="color: #008000;">-</span><span style="color: #FF0000;">1</span><span style="color: #008000;">;</span>
	 <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> <span style="color: #0600FF;">base</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">2</span><span style="color: #008000;">;</span> <span style="color: #0600FF;">base</span>  <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
			 <span style="color: #000000;">&#123;</span>
					 <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>temp<span style="color: #008000;">%</span> <span style="color: #0600FF;">base</span><span style="color: #008000;">==</span> <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
					 <span style="color: #000000;">&#123;</span>
					 count<span style="color: #008000;">++;</span> 
					 break<span style="color: #008000;">;</span>
					 <span style="color: #000000;">&#125;</span>
					 temp <span style="color: #008000;">=</span> temp <span style="color: #008000;">/</span> base<span style="color: #008000;">;</span>
			 <span style="color: #000000;">&#125;</span>
&nbsp;
	 <span style="color: #000000;">&#123;</span>
	 <span style="color: #0600FF;">return</span> <span style="color: #FF0000;">8</span><span style="color: #008000;">-</span>count<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #FF0000;">int</span> main <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	 <span style="color: #FF0000;">int</span> num<span style="color: #008000;">;</span>
	 printf<span style="color: #000000;">&#40;</span> <span style="color: #666666;">&quot;Enter the number:&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	 scanf<span style="color: #000000;">&#40;</span> <span style="color: #666666;">&quot;% d&quot;</span>, <span style="color: #008000;">&amp;</span> num<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	 printf<span style="color: #000000;">&#40;</span> <span style="color: #666666;">&quot;the fullnessQuotient of% d is% d <span style="color: #008080; font-weight: bold;">\ </span>n&quot;</span>, num, fullnessQuotient<span style="color: #000000;">&#40;</span>num<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	 getch<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	 <span style="color: #0600FF;">return</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></td></tr></table></div>

]]></content:encoded>
	</item>
</channel>
</rss>
