2080 6

C Programming20805 marksNested and Recursive Function

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]

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 $$n! = \begin{cases} 1 & \text{if } n = 0 \ n \times (n-1)! & \text{if } n 0 \end{cases}$$ ---...

Up nextWrite a program to check whether the entered word is palindrome or not.