Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
11
Task/Permutations/Julia/permutations.julia
Normal file
11
Task/Permutations/Julia/permutations.julia
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
term = "RCode"
|
||||
i = 0
|
||||
pcnt = factorial(length(term))
|
||||
print("All the permutations of ", term, " (", pcnt, "):\n ")
|
||||
for p in permutations(split(term, ""))
|
||||
print(join(p), " ")
|
||||
i += 1
|
||||
i %= 12
|
||||
i != 0 || print("\n ")
|
||||
end
|
||||
println()
|
||||
Loading…
Add table
Add a link
Reference in a new issue