1 public class Ch049 { 2 3 public static void main(String[] args) { 4 // TODO 自動生成的方法存根 5 6 int a = 1, b = 1; 7 for (int i = 1; i <= 20; i++) { 8 9 System.out.print(a + "\t"); 10 if (i % 5 == 0) { 11 System.out.println(); 12 } 13 b = b + a; 14 a = b - a; 15 } 16 17 } 18 19 }