Write program that prints all the permutations of for a given .
Input consists of a natural number .
Print all the permutations of in lexicographical order.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:39:08.416Z
© Jutge.org, 2006–2026.
https://jutge.org