Write a C program to input a number and rotate bits of number using bitwise shift operators. How to rotate bits of a given number using bitwise operator in C programming. Logic to left or right rotate bits of a number using bitwise shift operator in C program.

**Example**

**Input**

Input number = -15 Number of rotations = 2

**Output**

-15 left rotated 2 times = -57 -15 right rotated 2 times = 2147483644