static int calFibnocci(int k)
{
if(k<=1)
{
return 1
}
else
{
return calFibnocci(k-1) + calFibnocci(k-2);
}
}
how to call this function
calFibnocci(3)
Hope this help you
Kumar
This blog is a One Stop source which will help you in your day to day life. From technical help, tips and knowledge sharing. Keep Blogging...