langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,9 @@
|
|||
Procedure GCD(x, y)
|
||||
Protected r
|
||||
While y <> 0
|
||||
r = x % y
|
||||
x = y
|
||||
y = r
|
||||
Wend
|
||||
ProcedureReturn y
|
||||
EndProcedure
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
Procedure GCD(x, y)
|
||||
Protected r
|
||||
r = x % y
|
||||
If (r > 0)
|
||||
y = GCD(y, r)
|
||||
EndIf
|
||||
ProcedureReturn y
|
||||
EndProcedure
|
||||
Loading…
Add table
Add a link
Reference in a new issue