C語言旅途之用for循環求斐波那契數列問題

Ⅰ、用for循環求斐波那契數列問題: ①、//代碼摘下直接可以運行 //斐波那契數列問題 #include<stdio.h> int main() { int t,s,a1,a2,n; s=0;a1=1;a2=1; printf(「Please input the n of Fibonacci!\n」); scanf("%d",&n); printf("%10d\n%10d\n",a1,a2);
相關文章
相關標籤/搜索