Java Factorial factorial(int i)

Here you can find the source of factorial(int i)

Description

factorial

License

Open Source License

Declaration

public static int factorial(int i) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static int[] f = { 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600 };

    public static int factorial(int i) {
        return f[i];
    }//w  w w  .  j ava 2  s.co m
}

Related

  1. factorial(double n)
  2. factorial(double n)
  3. factorial(final int a)
  4. factorial(final long value)
  5. factorial(int c)
  6. factorial(int input)
  7. factorial(int integer)
  8. factorial(int n)
  9. factorial(int n)