标签:static tab 迭代 for rgs stat span == str
// 迭代法求fibonacci数列
public class p52 {
public static void main(String[] args)
{
int f1=1,f2=1;
for(int i=1;i<=18;i++)
{
System.out.print(f1+"\t"+f2+"\t");
if(i%3==0)
System.out.println();
f1=f1+f2; //迭代法求fibonacci数列
f2=f2+f1;
}
}
}
标签:static tab 迭代 for rgs stat span == str
原文地址:https://www.cnblogs.com/duanqibo/p/11131978.html