C/C++ Program for Efficient way to multiply with 7.
int multiplyBySeven(unsigned int n)
/* Note the inner bracket here. This is needed because precedence of '-' operator is higher than '<<' */
return ((n<<3) - n);
/* Driver program to test above function */
unsigned int n = 4;