Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
'
|
||||
' Greatest Common Divisor
|
||||
'
|
||||
a%=24
|
||||
b%=112
|
||||
PRINT "GCD of ";a%;" and ";b%;" is ";@gcd(a%,b%)
|
||||
'
|
||||
' Function computes gcd
|
||||
'
|
||||
FUNCTION gcd(a%,b%)
|
||||
LOCAL t%
|
||||
'
|
||||
WHILE b%<>0
|
||||
t%=a%
|
||||
a%=b%
|
||||
b%=t% MOD b%
|
||||
WEND
|
||||
'
|
||||
RETURN ABS(a%)
|
||||
ENDFUNC
|
||||
Loading…
Add table
Add a link
Reference in a new issue