2024-11-13 20:40:40 -06:00
|
|
|
## Obligatory
|
2024-11-14 15:32:46 -06:00
|
|
|
fizzbuzz <- ->
|
2024-11-18 10:41:51 -06:00
|
|
|
loop over x in range(100)
|
2024-11-14 15:32:46 -06:00
|
|
|
if x % 15 = 0 print("fizzbuzz")
|
|
|
|
elif x % 3 = 0 print("fizz")
|
|
|
|
elif x % 5 = 0 print("buzz")
|
|
|
|
else print(x)
|
|
|
|
|
|
|
|
fizzbuzz()
|
2024-11-14 15:49:37 -06:00
|
|
|
|
|
|
|
print()
|
|
|
|
|
|
|
|
ack <- m -> n ->
|
|
|
|
if m = 0 n + 1
|
|
|
|
elif n = 0 ack(m - 1, 1)
|
|
|
|
else ack(m - 1, ack(m, n - 1))
|
|
|
|
|
|
|
|
print(ack(3, 4)) ## 125
|