public static void main(String[] args){
int a=1; int b=1; int temp; for (int i = 1; i <=30; i++) { System.out.println("第"+i+"位数"+a); temp=a+b; a=b; b=temp; }
}