Anonymous user
Ethiopian multiplication: Difference between revisions
Correct parameter type
(Use separate functions for doubling, halving, and checking if a number is even) |
(Correct parameter type) |
||
Line 1,453:
Ethiopian Multiplication is another name for the peasant multiplication:
<lang seed7>const proc: double (
begin
a *:= 2;
end func;
const proc: halve (
begin
a := a div 2;
|