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 d main diff between the java and .net framework
what is diff bet ref variable & instance of class
what will we require to build project with the help of oracle
where is available in this mantis toturials?
What is web.configuration? how is it work? & wht is use this?
what is best way to create a Thread class & why?
Explain the types of operations? Draw the figure for shift and rotate operations?
Hai, My name is nisha.I have NIC exam.If anybody Knows NIC previous paper pattern pls send me to nishanairp@gmail.com
What is the use of sas software? Is sas and sap are different?
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.
how much fee for deccan soft institute .how to block seat for sandeep sir class reply soonnnn
What is SAP TAO? · Which Version you are using? · What is the Latest Version in SAP TAO? · What are the Advantages in SAP TAO? · What are the Patches required for SAP TAO? · What is BPT? · Difference between BPT & SAP TAO? · Which Framework using for SAP TAO? · What is CBASE? · What is the SAP TAO Architecture? · What are the Prerequisites for SAP TAO? · SAP Solution Manager Mandatory for SAP TAO 1.0? · SAP Solution Manager Mandatory for SAP TAO 2.X? · What is UI Scanner? · What is Inspector? · How many ways to Create a components using TAO 1.0? · How many ways to Create a components using TAO 2.x? · Which service pack required for SAP TAO 2.7? · What is Import/Export? · What is Consolidate?
how to add Servlet-api.jar file into eclipse 3.3.2 ?
through which algorithm does the garbage collector works? how the garbage collector will understand that the object will going to be deleted?
What is the merger sort principle and its time complexity.