Advertisement
n0tmE

Factorial main class

Jun 6th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import com.example.utils.MyMath;
  2.  
  3.  
  4. public class FactorialTest {
  5.  
  6.     /**
  7.      * @param args
  8.      */
  9.     public static void main(String[] args) {
  10.         long l = 6;
  11.         for (l = 1; l <= 10; l++) {
  12.             System.out.println("Factorial of " + Long.valueOf(l).toString() + " is " + Long.valueOf(MyMath.Factorial(l)).toString());
  13.         }
  14.     }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement