Multiplocation 2 two numbers : I have an assignment to build a function that multiplies 2 numbers ( int and double ) and without using * or '-'
Can only use '+' '/' and '%'.
I noticed alot of people are using shifting methos but i cant use without because we didnt learn it yet.
And as much as i can do it without 1 while loop easily the trick is its supposed to be in nlogn or logn runtime efficiency...

No list no arrays either though i dont see any way of using them anyway.

Is there any possible way of doing it ???

Thanks
Bar