首页 > IT职业 > IT职场 > 设计一个程序,打印出1-200之间的斐波那契数列
/设计一个程序,打印出1-200之间的斐波那契数列(说明:斐波那契数列指这样一个数列:1、1、2、3、5、8、13、21、34)
/
public class Demo {
public static void main(String[] args) {
fibo(200);
}
//计算下标数
static int countindex(int target) {
int count = 2;
int a = 1;
int b = 1;
int c = a + b;
while (c }
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2310/viewspace-2807653/ ,如需转载,请注明出处,否则将追究法律责任。