Give me a fastest way to multiply a number by 9....
NIce one man! I was about to give the same ans!
good one,i was expecting this !!
If the 'number' is an unsigned interger.. you can use bit operations to multiple by 8 and then add the number itself
9n=8n+n;
So
n=100; product= (n<<3) + n;
fastest way to multiply a number by 9
NIce one man! I was about to give the same ans!
fastest way to multiply a number by 9
good one,i was expecting this !!
fastest way to multiply a number by 9
If the 'number' is an unsigned interger.. you can use bit operations to multiple by 8 and then add the number itself
9n=8n+n;
So
n=100;
product= (n<<3) + n;