You are on page 1of 1

Programming and Computational Thinking

Homework 2
National Chi Nan University

Problem Description
Input three integers and output all of their permutations. A permutation of a sequence
is to rearrange elements of the sequences in some specified order.

Sample Input Sample Output


123 123
132
213
231
312
321

Sample Input Sample Output


121 112
121
211

Sample Input Sample Output


222 222

You might also like