Q:

# C++ Program to find Factorial of a Number using Recursion and Loop

belongs to collection: C++ Number Solved Programs

##### C++ Number Solved Programs

- C++ Program to Find Sum and Average of three numbers
- Write a C++ Program to raise any number X to power N
- Write a C++ Program to find Addition of Two Numbers
- C++ Program to find Square Root of a number using sqrt() function
- C++ Program to Check whether given number is Even or Odd
- Write a C++ Program to Check a number is Prime or not
- C++ Program to find Factorial of a Number using Recursion and Loop
- C++ program to Print Multiplication Table of a given number
- C++ Program to Reverse a Number using while loop
- C++ Program to Find the Number of Digits in a number
- C++ Program to Generate Fibonacci Series for N numbers
- C++ Program to Check whether a Number is Armstrong or not
- C++ program to Find Largest of three numbers using nested if
- C++ program to Check whether a number is palindrome or not
- C++ Program to Calculate HCF of Two Numbers using Functions
- C++ program to find LCM of two numbers using functions
- Write a C++ program to find Square Root of a Number
- Write a C++ Program to find Cube Root of a Number
- C++ Program to find Sum of Digits of a Number using while loop
- C++ Program to Find Power of a Number using for loop
- C++ Program to Check Number is Unique Number or Not
- C++ Program to Find Sum and Average of n numbers using for loop
- C++ Program to Find Sum of n Natural Numbers using For loop
- C++ Program to find Factors of a Number using For loop
- C++ Program to Find Sum of Square of first n Natural numbers
- C++ Program to Convert Binary Number to Decimal
- C++ Program to Convert Decimal Number to Binary
- C++ Program to find Prime Numbers Between Two Intervals
- C++ Program to Convert Binary Number to Octal
- C++ Program to Convert Octal Number to Binary
- C++ Program to Convert Octal Number to Decimal
- C++ Program to Convert Decimal Number to Octal
- C++ Program to Design Simple Calculator using switch case
- C++ Program to Calculate Area of Circle using Function
- C++ Program to find Area and Perimeter of Rectangle
- C++ Program to find Perfect Number using loop
- C++ Program to Find Grade of a Student using if else
- Write a C++ Program to Calculate Arithmetic Mean of N numbers
- C++ Program to calculate Average of 5 subjects and find percentage

Factorial of any number is the product of an integer and all the integers below it for example factorial of 4 is

4! = 4 * 3 * 2 * 1 = 24

## Factorial of a Number using For Loop

Here is source code of the C++ Program to find Factorial of a Number using for loop. The C++ program is successfully compiled and run(on Codeblocks) on a Windows system. The program output is also shown in below.

## SOURCE CODE : :

## Output : :

## Factorial of a Number using recursion

Here is source code of the C++ Program to find Factorial of a Number using Recursion. The C++ program is successfully compiled and run(on Codeblocks) on a Windows system. The program output is also shown in below.

## SOURCE CODE : :

## Output : :

Above is the source code for C++ Program to find Factorial of a Number using For Loop and Recursion which is successfully compiled and run on Windows System.The Output of the program is shown above .

need an explanation for this answer? contact us directly to get an explanation for this answer