Multiply a number by 3.5 without using *, /, % operators
How would you multiply a number by 3.5 without using *
, /
or %
, operators?
The number may be signed or unsigned.
添加次数= n双和= 0;
for(int i=0;i<n;i++)
{
sum=sum+3.5;
}
Math.log(Math.pow(Math.exp(x), 3.5))
上一篇: 双轮廓和二次误差函数
下一篇: 将数字乘以3.5而不使用*,/,%运算符