Java 计算斐波那契数列2 Java 计算斐波那契数列1 Java 计算阶乘1 Java 计算斐波那契数列2 public class ExampleFibonacci { public static void main(String a[]) { int count = 15; int[] feb = new int[count]; feb[0] = 0; feb[1] = 1; for(int i = 2; i < count; i++) { feb[i] = feb[i-1] + feb[i-2]; } for(int i = 0; i< count; i++) { System.out.print(feb[i] + " "); } } } Java 计算斐波那契数列1 Java 计算阶乘1