Quote:

Originally Posted by **Abinila**
Tell me what is problem in your code. Whether I need to change your algorithm?

hi abinila,i cant describe the problem but prob in recursion due to this, prog doesn,t able to calculate correct result. if u r really intrested to solve the problem run it for x=1 and n=5 the answer should be 2.7016