Rotate an object by variable degree value(Clockwise)

Use below code snippet to rotate an object around its center point by a changeable degree value in clockwise direction.