Originally Posted by Bostonian
Originally Posted by 22B
For example, what if you want to write a program to find the GCD of two positive integers (in terms of arithmetic operations and inequalities, not just using a pre-made GCD subroutine). Is Scratch good for that?
It can do it. There is a Scratch program to compute the GCD at http://scratch.mit.edu/projects/1518558/ , where the "See inside" button leads you to the code. At age 10 my son wrote a Scratch program to find prime numbers.
Okay the "See inside" button let's me see what it looks like. I get it now.
ETA: Although that programmer should learn about Euclid's Algorithm, especially since there is a preprogrammed binary operation "mod" which does 90% of the work on its own.

Last edited by 22B; 10/20/14 12:20 PM.