ScratchData LogoScratchData
Back to misgdps's profile

a036:最大公因數

MImisgdps•Created August 29, 2015
a036:最大公因數
0
0
35 views
View on Scratch

Instructions

找出兩數的最大公因數 為何要設【最小公因數】變數=1 1.輸入A、B兩整數 2.兩數的最大公因數一定小餘或等於A、B其中一數 3.設立【大的數】、【小的數】變數由A、B依實際狀況擔任 4.A和B同時除以【小的數】的餘數=0,則最大公因數就是這個【小的數】 5.A和B同時除以【小的數】的餘數無法都是【0】,【小的數】開始向下減1,直到同時得到的餘數都是0

Description

改編自 https://scratch.mit.edu/projects/11430455/ Type in numbers and Sam will "magically" find the greatest common factor for you! If you type letters it will say -1.

Project Details

Project ID74551916
CreatedAugust 29, 2015
Last ModifiedSeptember 15, 2015
SharedAugust 29, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root