#include<stdio.h>
int fn(int v);
main()
{
printf("%d\n",fn(7));
}
int fn(int v)
{
if(v==1 || v==0)
return 1;
if(v%2==0)
return fn(v/2)+2;
else
return fn(v-1)+3;
}
No Answer is Posted For this Question
Be the First to Post Answer
Whatis Bandwidth?
explain different access specifiers in class
What is a computer without a hard disk called as technically ?
how will u test the idoc
what is meant by safety in construction?
explain software engineering practices
how to cable size by Amp with example
how to conrtruct gear make him rotate on its axis
how to count number of 3's in 100
i mdoing btech and i have two choices either i choose software eng or do multimedia eng so which one has better scope
main() { int y=10; if(y++>9 && y++!=10 && y++>10) { printf("%d",y); else printf("%d",y); } }
What is Landscape in Sap BW?