97-2 Programming Language
97-2 Programming Language. Exercise #2: Recursive function. Demo 1. 試撰寫 int fib(int n) 函數,以遞迴函數來求 費氏數列 ,並找出 fib(6)=? 。. Demo 2. 試以遞迴的方式撰寫函數 int sum(int n) , 並利用遞迴公式 sum(n) = n + sum(n - 1) , sum(1) = 1 用來計算 1+2+3+...+n 的值。. Exercise.
Download Presentation 
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
