2009年6月15日 星期一

Lab Factorial

Write a Java program that computes N! where N is a positive integer.

Hint:

public static long factorial(int n)




0!的情形


1!的情形


10!的情形

沒有留言:

張貼留言