C++ Program to Find Factorial of a Number
Here I have shared the factorial program in C++. A Factorial is the product of a number and all the numbers below it. For example, the factorial of 4! = 4 × 3 × 2 × 1 = 24. #include<iostream> using namespace std; int main() { unsigned long i,fac,n; cout<<“Enter number: “; cin>>n; for(i=1,fac=1;i<=n;++i) { …