CSC115 ยท 2080 ยท 5 marks
Write a program to calculate the factorial of a given number using recursion.
Write a program to calculate the factorial of a given number using recursion. [5]
C ProgrammingChapter 7: FunctionsNested and Recursive Function
CSC115 ยท 2080 ยท 5 marks
Write a program to calculate the factorial of a given number using recursion. [5]
A recursive function is a function that calls itself. It must have: 1. Base condition (stopping condition) -- when n == 0, return 1 2. Recursive call -- each call must move closer to the base condition ---...