public class fourth{
public static void main(String[]args){
int i=1;
int j=1;
int sum=0;
System.out.print(i+"\t"+j+"\t");
for(int k=3;k<=20;k++){
sum=i+j;
i=j;
j=sum;
System.out.print(sum+"\t");
if(k%5==0){
System.out.println();
}
}
}
}
网友评论