You are designing a COBOL program to calculate the factorial of a number using a recursive subprogram. Which type of recursion is involved in this scenario?

  • Direct Recursion
  • Indirect Recursion
  • Mutual Recursion
  • Tail Recursion
In this scenario, Mutual Recursion is involved when two or more subprograms call each other to calculate the factorial. It creates a cycle of calls among the subprograms.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *