Answer
Multiply by 8 via shift and substract the number:
int multiply(int num)
{
return (num << 3) - num;
}
...
Search results for multiply
How to fast multiply a number by 7?
Posted by CMasterSubstitution Cipher Puzzle
Posted by CommonInterview
Task is to use a standard substitution cipher where a = 1...z = 26. Find the English word that produces a value closes to 1 million when you multiply ...
Equation to produce 24 exactly from given numbers, no integer math
Posted by jane (http://blogs.sun.com)
Using the integers 1, 3, 4 and 6, and using only the four basic arithmetic operators + - * / (add, subtract, multiply, divide), create an equation tha ...
« previous1 next »
