public static long factorial(long number) { int i,fact=1; for(i=1;i<=number;i++){ fact=fact*i; } return fact; }