{"id":131068,"student_id":1998,"content":"setBackdrop('black');\nvar a = '?';\nvar b = '?';\nvar gcd = '';\nvar lcm = '';\n\nwhen('click', function () {\n A = Number(prompt(\"請輸入A數字\"))\n B = Number(prompt(\"請輸入B數字\"))\n a = A;\n b = B;\n while (true) {\n if (A \u003e B) {\n A = A % B\n } else {\n B = B % A\n }\n if (A == 0 || B == 0) {\n if (A == 0) {\n gcd = B\n } else {\n gcd = A\n\n }\n lcm = (a / gcd) * (b / gcd) * gcd;\n break;\n }\n }\n\n\n});\n\nforever(function() {\n print('請點擊銀幕輸入!', 100, 50, 'white', 40);\n print('A: ' + a, 100, 150, 'white', 40);\n print('B: ' + b, 100, 200, 'white', 40);\n print('最大公因數: ' + gcd, 100, 250, 'white', 40);\n print('最小公倍數: ' + lcm, 100, 300, 'white', 40);\n\n});","created_at":"2020-03-07T16:11:43.728+08:00","updated_at":"2020-03-07T17:35:19.939+08:00","name":"輾轉相除法 副本","language":"javascript","screenshot":{"url":"https://cdn9.koding.school/uploads/project/screenshot/131068/e7bd8859be2562c8681b9dc9e0c5dfcb.jpg"},"parent_id":32561,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":50,"hashid":"yeysdg4r","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦