#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
How can write a C program that shows All the prime number?
how can i implement a program of polynomial adding,multiplication,through c language???
what are the under ground metods praticed in indian copper mines
What is the relation between dB and change of signal?
Can you connect Active Directory to other 3rd-party Directory Services? Name a few options.
discuss the technique for implementing high performance computing
tell me about exchange server 2003 and what is the difference between exchange 2000 and 2003 server,what are the type of connectors ?
how to generate linked implementation of sparse matrix?
I am having 5 nos. ceiling fans in my home. if i switch on all fan at full speed say 5 , so Will my meter reading be runing fast ? OR if I keep all fans on very low speed, say 1, so meter reading will runing slowly. or it does not make any difference whether low or high. reading will remain same?
What is VAT Account determination ? and how we can map in SAP ?
WHAT IS MOST THE PARAMETER WILL BE INSTALL IN NEW VFD'S INSTALLATION ?
why view is created in database
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)