Sunday, 7 April 2013

C/C++ Program to Print the Cyclic Permutations of a Number

  Consider the number 1234. The number can be cyclically rotated to obtain the following numbers 4123, 3412, 2341, and 1234. The C/C++ Program in this Post prints the Cyclically Shifted numbers obtained from a given number.

Figure Below Shows a Sample Output


Click here to download the C++ Program.

No comments:

Post a Comment