{"id":59996,"student_id":265,"content":"// function fib (c) {\r\n// var a = 0;\r\n// var b = 1;\r\n// for (var i=0; i\u003cc; i++) {\r\n// var temp = b;\r\n// b = a + b;\r\n// a = temp;\r\n// }\r\n// return b;\r\n// }\r\n\r\n\r\nfunction fib(c) {\r\n if (c \u003e 1) {\r\n return fib(c - 1) + fib(c - 2);\r\n } else {\r\n return 1;\r\n }\r\n}\r\n\r\n\r\nvar count = fib(time);\r\nforever(function(){\r\n print(`經過 ${time} 個月`, 50, 180, 'white', 50);\r\n print(`總共有 ${count} 隻兔子`, 50, 260, 'white', 50);\r\n});","created_at":"2019-03-23T10:05:28.606+08:00","updated_at":"2019-10-26T23:01:37.114+08:00","name":"兔子生兔子 副本","language":"javascript","screenshot":{"url":"https://cdn1.koding.school/uploads/project/screenshot/59996/89edcce60b8890776f43b51e69f48ea4.jpg"},"parent_id":32568,"plugin":"setBackdrop(\"black\");\nvar time = prompt(\"經過幾個月?\", \"0\");\n\nfunction fib (c) {\n}\n\nvar count = fib(time);\nforever(function(){\n print(`經過 ${time} 個月`, 50, 180, 'white', 50);\n print(`總共有 ${count} 隻兔子`, 50, 260, 'white', 50);\n});","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":88,"hashid":"wdks3gvq","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
繁中
简中
English
日本語
1:1:1
1:1
全寬
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦