Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -0,0 +1,17 @@
|
|||
Function GCD(a,b)
|
||||
Do
|
||||
If a Mod b > 0 Then
|
||||
c = a Mod b
|
||||
a = b
|
||||
b = c
|
||||
Else
|
||||
GCD = b
|
||||
Exit Do
|
||||
End If
|
||||
Loop
|
||||
End Function
|
||||
|
||||
WScript.Echo "The GCD of 48 and 18 is " & GCD(48,18) & "."
|
||||
WScript.Echo "The GCD of 1280 and 240 is " & GCD(1280,240) & "."
|
||||
WScript.Echo "The GCD of 1280 and 240 is " & GCD(3475689,23566319) & "."
|
||||
WScript.Echo "The GCD of 1280 and 240 is " & GCD(123456789,234736437) & "."
|
||||
Loading…
Add table
Add a link
Reference in a new issue