回複:我們公司程序員的麵試題目。


public class Test {

public static void main(String[] args) {

long first = 1, second = 1, result= 0;
int step = 3;

while(step result = first + second;
first = second;
second = result;
step++;
}
System.out.println(result);
}
}
請您先登陸,再發跟帖!