#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
What is the meaning of "co relation" and what is the value of "co relation" in the performance testing environment.
how to create user name stape by stape in cisco router {with command}
what is your experience with computer-aided design software.
how many E1's in pasolink and ipasolink?
synchronous and asynchronous transmission
Given a set of numbers like 1,2,5,4,1,2,1,7 find the number of faults using LRU.
Which is better field cad/cam in mechanical or film editing/animation is better salary wise?
is there increase in the pressure of water or the density of water if we go deep into the ocean.(but the density of water is 1000kg/cubic meter)?
What is the pattern for HAL Online-exam?
hi all I got two exam call letter one from maha ganeco & other from federal bank both at same time & same date which should i choose (note I am eng. grad.)
Has anyone attended interviews in IITs for positions like Research fellowships/assistants? If yes, please share the experience about how complex the interview was, etc. etc.
what is the difference between physical address and logical address?
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
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)