Data update
This commit is contained in:
parent
07c7092a52
commit
61b93a2cd1
313 changed files with 6160 additions and 346 deletions
18
Task/Bell-numbers/FutureBasic/bell-numbers.basic
Normal file
18
Task/Bell-numbers/FutureBasic/bell-numbers.basic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
local fn BellNumbers( limit as long )
|
||||
long j, n = 1
|
||||
|
||||
mda(0) = 1
|
||||
printf @"%2llu. %19llu", n, mda_integer(0)
|
||||
while ( n < limit )
|
||||
mda(n) = mda(0)
|
||||
for j = n to 1 step -1
|
||||
mda(j - 1) = mda_integer(j - 1) + mda_integer(j)
|
||||
next
|
||||
n++
|
||||
printf @"%2llu. %19llu", n, mda_integer(0)
|
||||
wend
|
||||
end fn
|
||||
|
||||
fn BellNumbers( 25 )
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue