Programmers Problems and Solutions
What is Recursion?
when a function calls to itself the process is called recursion. the simplest example can be to add two numbers i.e. 5 + 3 is same as 6+2 ....7+1.... 8+0. the answer is 8 for its program you can answer in comments or i will answer it later
1 comment:
KP
11 December 2015 at 08:40
fun(5,3)=fun(6,2)=fun(7,1)=fun(8,0)= 8
Reply
Delete
Replies
Reply
Add comment
Load more...
Home
Subscribe to:
Comments (Atom)
fun(5,3)=fun(6,2)=fun(7,1)=fun(8,0)= 8
ReplyDelete