Clearing the right most set bit in a binary number
Given an integer, write a program to clear the right most set bit in it’s binary representation. For example, consider a number 54. It is represented in binary as 1 1 0 1 1 0. The right most set bit is marked in bold. We need to convert this to 1 1 0 1…