GCD


No notes were written for this algorithm.

Preview of this algorithm

Icon Variable
Ask for a with default 0
Icon Variable
Ask for b with default 0
Icon Structure
While b != 0
Icon Variable
Set c to a % b
Icon Variable
Set a to b
Icon Variable
Set b to c
Icon Structure
End
Icon Output
Print variable a