Y
Hacker News
new
|
ask
|
show
|
jobs
by
0xfeba
3174 days ago
> Multiply two numbers without using multiplication operator or loops
Uh, ok:
a * b = b != 0 ? a/(1/b) : 0
Done.
EDIT: handle division by zero.