Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Leonardo-numbers/Sidef/leonardo-numbers.sidef
Normal file
10
Task/Leonardo-numbers/Sidef/leonardo-numbers.sidef
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
func 𝑳(n, 𝑳0 = 1, 𝑳1 = 1, 𝑳add = 1) {
|
||||
{ (𝑳0, 𝑳1) = (𝑳1, 𝑳0 + 𝑳1 + 𝑳add) } * n
|
||||
return 𝑳0
|
||||
}
|
||||
|
||||
say "The first 25 Leonardo numbers:"
|
||||
say 25.of { 𝑳(_) }
|
||||
|
||||
say "\nThe first 25 numbers using 𝑳0 of 0, 𝑳1 of 1, and adder of 0:"
|
||||
say 25.of { 𝑳(_, 0, 1, 0) }
|
||||
Loading…
Add table
Add a link
Reference in a new issue