回复:我们公司程序员的面试题目。


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);
}
}
请您先登陆,再发跟帖!