Factorial Program in C++

Below I have shared the factorial program in C++.


Factorial is the product of a number and all the numbers below it. For example factorial of 4 is equal to 24.


If you have any problem regarding below factorial program in C++ then you can freely ask it by commenting below.

Factorial Program in C++



Enter number: 5

Factorial of 5 is: 120

3 thoughts on “Factorial Program in C++

  1. vishnu prakash

    Write a program in c++ to read a single dimension array of size 'n' and create a 2-d array as follows:
    input array: 1 2 3 4
    output array: 1 0 0 1
    0 2 2 0
    0 3 3 0
    4 0 0 4


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.