回复:我们公司程序员的面试题目。
来源:
运气旺
于
2009-02-20 21:12:41
[旧帖]
[给我悄悄话]
本文已被阅读:次
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);
}
}