package java实训;
public class SJ7 {
public static void main(String[] args) {
int a=1,b=1,c=a+b;
for(int s=1;s<=30;s++) {
System.out.println("第"+s+"个数"+a);
System.out.print("\n");
a=b;
b=c;
c=b+a;
}
}
}
04-19
459
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交