Write a function rightrot(x,n) that returns the value of the integer x rotated to the right by n positions.
x is unsigned. n may be 0, or more than the number of bits in x.
Each input line holds x and n in decimal, separated by a space. Print rightrot(x,n) in decimal on a line of its own.
No submissions yet