How can I perform multiplication without the '*' operator?

前端 未结 30 1537
别跟我提以往
别跟我提以往 2020-12-01 01:47

I was just going through some basic stuff as I am learning C. I came upon a question to multiply a number by 7 without using the * operator. Basically it\'s like this

<
30条回答
  •  情歌与酒
    2020-12-01 02:42

    Everyone is overlooking the obvious. No multiplication is involved:

    10^(log10(A) + log10(B))
    

提交回复
热议问题