Factorial Program in C++

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

Factorial is the result of a number and every one of the numbers underneath it. For instance factorial of 4 is equivalent to 24.

In the event that you have any issue with respect to beneath factorial program in C++, at that point you can unreservedly ask it by remarking underneath.

using namespace std;
int main()
	unsigned long i,fac,n;
	cout<<"Enter number: ";
	cout<<"Factorial of "<<n<<" is: "<<fac;
	return 0;


Enter number: 5

Factorial of 5 is: 120

Leave a Comment

error: Alert: Content is protected!!