斐波那契數列問題

斐波那契數列求兔子問題 #include<stdio.h> #include<math.h> int main() { double a,b,c,x,y,i,d; printf(「請輸入想要知道兔子對數的月份:」); scanf("%lf",&i); //輸入月份 a=sqrt(5); //平方根 b=(1+a)/2; c=(1-a)/2; x=pow(b,i); y=pow(c,i); d=1/
相關文章
相關標籤/搜索