What is recursion? Write a "C" program that will calculate the factorial of given number.
Recursion is the process of repeating items in a self-similar way. In programming languages, if a program allows you to call a function inside the same function, then it is called a recursive call of the function.
printf("Enter a number: ");
printf("Factorial of %d is: %d",num,f);