/* Finding the factorial for the given number */
#include< stdio.h>
#include< conio.h>
main()
{
	int number,answer;
	clrscr();
	printf("enter value\n");
	scanf("%d",&number);
	answer=factorial(number);
	printf("Factorial of the given number =%d\n ",answer);
	getch();
}
factorial(int number)
{
	int result;
	if (number==1)
		return number;
	else
		result=number * factorial(number - 1);
		return result;
}

/* input : enter value
	   4
   output: 24

   Hint: if you give the input is more than 19 the output will be zero
	 so you must declared the variable long int
	 ex: long int number,answer
*/