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);
}
}
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2024 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy