# function of the factorial
fact(x){
	if (x <= 1)
		return 1;
	res = 1;
	while(x > 1)
		res = res * x--;
	return res;
}
fact(1)
fact(10)