Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Someone
· 4y ago · 0 comments
A simpler way multiplication is recursive is the way it is defined for natural numbers in mathematics:
a × b = 0 if b = 0 a × b = a + a × (b - 1) if b ≠ 0
Comments
[–]
nonsapreiche
4y ago
a x b = a if b = 1
[–]
ethanwillis
4y ago
What is a + a x 0? :)