9 lines
268 B
Text
9 lines
268 B
Text
how-to mult:
|
|
requires a number n and a number m
|
|
resoult is a number
|
|
1) if m and 0 are equal resoult is 0
|
|
2) if m and 1 are equal resoult is n
|
|
3) sub m and 1
|
|
4) repeat from the start with n and it
|
|
5) add n and it // it = resoult of preceding operation
|
|
6) resoult is it
|