RosettaCodeData/Task/Permutations/PascalABC.NET/permutations.pas

5 lines
93 B
ObjectPascal
Raw Permalink Normal View History

2024-10-16 18:07:41 -07:00
##
var a: array of integer := (1, 2, 3);
writeln(a);
while nextpermutation(a) do writeln(a);