Answer
Multiply by 8 via shift and substract the number:
int multiply(int num)
{
return (num << 3) - num;
}
...
« previous1 next »