Explain recursion with an example.
Answer / 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 |
1.Mutating table
how can we get version of database ?
hi..this is kartheek..complted mca in 2009..but i dont have knowledge in programing..but to learn new language.. which one is suitable for me?is SAP or IBM mainframes is suitable for me..?if it suits how much will it costs..?pls answer...
how do u handle table control inbdc explain the process in steps iwant the answer in urgent please forward this even i know how to explain there
what are wrapper classes
Hello Experts, What is the difference between move and move corresponding exactly? please post me asap
what is log files in qtp what is use
What is Boxing?
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?
what is the abap/4
is try block possible without catch block?