Data update
This commit is contained in:
parent
61b93a2cd1
commit
5af6d93694
858 changed files with 20572 additions and 2082 deletions
17
Task/Permutations/FutureBasic/permutations-1.basic
Normal file
17
Task/Permutations/FutureBasic/permutations-1.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
void local fn perm( k as Short)
|
||||
static Short w( 4 ), i = -1
|
||||
Short j
|
||||
i ++ : w( k ) = i
|
||||
if i = 4
|
||||
for j = 1 to 4 : print w( j ),
|
||||
next : print
|
||||
else
|
||||
for j = 1 to 4 : if w( j ) = 0 then fn perm( j )
|
||||
next
|
||||
end if
|
||||
i -- : w( k ) = 0
|
||||
end fn
|
||||
|
||||
fn perm(0)
|
||||
|
||||
handleevents
|
||||
Loading…
Add table
Add a link
Reference in a new issue