# Write a program to find the factorial of a number using recursion

Given a number N , the task is to print all the factors of N using recursion. A factor is a number which divides the number completely. Approach: The idea is to create a function that takes 2 arguments. The function is recursively called from 1 to N and in every call, if the number is a factor of N, then it is printed. The recursion will stop when the number exceeds N. Get hold of all the important mathematical concepts for competitive programming with the Essential Maths for CP Course at a student-friendly price.

## Factorial Number Program in C# using Recursion

## PHP Factorial Program - javatpoint

The factorial of a integer N, denoted by N! Factorial does not exist for negative numbers and factorial of 0 is 1. For Example 5! We can use recursion to calculate factorial of a number because factorial calculation obeys recursive sub-structure property. Let factorial N is a function to calculate and return value of N!.

### C Program to find factorial of a Number using Recursion

To Write C program that would find factorial of number using Recursion. The function is a group of statements that together perform a task. Every C program has at least one function, which is main , and all the most trivial programs can define additional functions.

In this program, you'll learn to find the factorial of a number using recursive function. To understand this example, you should have the knowledge of the following Python programming topics:. Factorial is not defined for negative numbers and the factorial of zero is one, 0!