Answer Posted / nashiinformaticssolutions
o Recursion is a technique where a function calls itself to solve smaller sub-problems.
8. def factorial(n):
9. if n == 1:
10. return 1
11. else:
12. return n * factorial(n - 1)
13. print(factorial(5)) # Output: 120
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is class module in vb6? what it's use? with example..
Hey this is venkatesh.Please can any body tell me what is SFLNXTCHG?where we use this keyword?what perpuse we use this?Can you tell me in real time senario with example? And in 7 specification(RPG/400)what is the mandatory specification using programs?
How do i find out the number of parameters passed into function?
iam confused among testing ,.net and java. can anybody help me.
diffrence between oracle apps , .NET , SAP
what is web configuration file
How does the TCP handle the issue of multiplexing?
what is the diffrence between software and hardware language?
what is the certificates in biztalk?
what do u mean by tagging
How to get the index of the clicked field in reports in ABAP?
Given: coordinates of rectangle-> left bottom and right top points. the rectangles create a hole.Find the maximum area of the hole. eg. 4 rectangles create a hole in between. find its area.
Delta 5 weight scale not connect with oracle application what i can do?
what is the use MDM(Master Data Management)and meaning
i am exeprienced person what is selection process