每日一句 ( 20241222 )  

Rivers know this: there is no hurry. We shall get there some day.

河流知道這一點:無需匆忙。我們終有一日會到達。———— A. A. Milne

C語言數(shù)組練習-求斐波那契數(shù)列

C語言程序設(shè)計-現(xiàn)代方法 上的數(shù)組一章練習題:聲明一個定長度數(shù)組fib_number,提示用戶輸入開始的兩位數(shù),程序自動計算剩下的數(shù)列,并輸出數(shù)列項。#include int main(void) { int fib_number[40],i,size; size = sizeof(fib_number)/sizeof(fib_number[0]); printf("輸入第一個數(shù):\n"); scanf("%d",&fib_number[0]); printf("輸入第二個數(shù):\n"); scanf("%d",&fib_number[1]); for(i=2;i