说明: public class Fib { static void shuru(int n) { long f1=0,f2=1; for(int i=0;i<=n;i++) { System.out.print(f1+" "+f2+" "); f1=f1+f2; f2=f1+f2; } System.out.println(); } public static void main(String args[]) { int j=Integer.parseInt(args[0]); shuru(j
<jiashn123> 上传 | 大小:353byte