C語言中遞歸詳解

     編寫一個簡單的cheng函數,輸入的b全爲數值5。函數 第一種狀況:code 1 #include<stdio.h> 2 int cheng(int a) 3 { 4 5 if(a>1) 6 { 7 a=a*cheng(a-1); 8 printf("%d\n",a); 9 } 10 return
相關文章
相關標籤/搜索