BlackBerry interview question

Write a function that will return x*7 without using multiplication?

Interview Answer

Anonymous

8 Nov 2014

tmp = x; x <<= 3; x -= tmp;