Line 1: Line 1:
 
<pre>
 
<pre>
<code class="language-c">
+
 
 
int unknown(int n){  
 
int unknown(int n){  
 
int i, j, k=0;  
 
int i, j, k=0;  
Line 7: Line 7:
 
k = k + n/2;  
 
k = k + n/2;  
 
return (k);  
 
return (k);  
}  
+
}
</code></pre>
 

Revision as of 21:01, 15 November 2013


int unknown(int n){ 
	int i, j, k=0; 
	for (i=n/2; i<=n; i++) 
	    for (j=2; j<=n; j=j*2) 
		k = k + n/2; 
	return (k); 
}

int unknown(int n){ 
	int i, j, k=0; 
	for (i=n/2; i<=n; i++) 
	    for (j=2; j<=n; j=j*2) 
		k = k + n/2; 
	return (k); 
}