Apryse interview question

How to multiply a number by 7 without using + and * operators?

Interview Answers

Anonymous

14 Oct 2010

use bit shifting.

1

Anonymous

23 Jan 2013

n=n<<3-n

1

Anonymous

9 Aug 2013

do the left.bit shift operation by 3 and then subtract the result by original number . eg: n=1 ,then n=n<<3 -n gives 7 , if n=2 ,then gives 14