Java不使用递归析因程序 Java Armstrong号码 Java多行注释 Java不使用递归析因程序 public class Tester { static int factorial(int n) { if (n == 0) return 1; else return (n * factorial(n - 1)); } public static void main(String args[]) { int i, fact = 1; int number = 5; fact = factorial(number); System.out.println(number + "! = " + fact); } } Java Armstrong号码 Java多行注释