3 ms·
> 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.
by 0xfeba 9y 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.