There was a difficulty with the cyclic permutation code on C. The full condition of the problem:
Write a program that allows you to enter two numbers n and k of the unsigned type from the keyboard, type them on the display, and using bit operations make a cyclic permutation n in the number n bits to the right.
With the first part of the problem there were no problems. Thank you in advance. :)