You are on page 1of 1

CS101 GDB 1 SOLUTION 2022

Solution:
Difference between Recursion and Loop:
The difference between recursion and loop is that recursion is a mechanism to call a function
within the same function while loop is a control structure that allows executing a set of
instructions again and again until the given condition is true.
What I choose:
As per the given situation, as I would like to think, recursion is awesome for a clinic to keep up
with patient records. Since
1. Recursion is a strategy for calling a capability inside a similar capability.
2. Recursion is more decipherable when contrasted with circles.
3. Recursion space intricacy is higher than loop.
4. Recursion has a lot of above when contrasted with loops.
5. Recursion is particularly really great for dealing with things that have numerous
potential branches and are excessively mind boggling for an iterative methodology.
Recursion is especially good for working on thing that has many possible branches and are too
complex for an interactive approach.

You might also like