14 lines
280 B
Julia
14 lines
280 B
Julia
using Combinatorics
|
|
|
|
term = "RCode"
|
|
i = 0
|
|
pcnt = factorial(length(term))
|
|
print("All the permutations of ", term, " (", pcnt, "):\n ")
|
|
for p in permutations(split(term, ""))
|
|
global i
|
|
print(join(p), " ")
|
|
i += 1
|
|
i %= 12
|
|
i != 0 || print("\n ")
|
|
end
|
|
println()
|