Factorial
      In mathematics, the factorial of a positive integer n, denoted by n!, is the product of all positive integers less than or equal to n.
/*
	http://www.ProbCOMP.com

	In mathematics, the factorial of a positive integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example,
	5! = 1 x 2 x 3 x 4 x 5 = 120  
	In this function we use for loop to find the factorial.

*/

int factorial(int number)
{	
	int value=1;
	for(int i=1;i<=number;i++)
	{
		value=value*i;
	}
	return value;
}

									

Download Program
Did You Know ?
IP address is a numerical label that is assigned to devices participating in a computer network. Read More