Ethiopian multiplication: Difference between revisions

m
(added powerbuilder example)
Line 1,506:
 
=={{header|Perl 6}}==
{{works with|Rakudo|#21 "Seattle"Star|2010-08}}
 
<lang perl6>sub halve (Int $n is rw) { $n div= 2 }
sub double (Int $n is rw) { $n *= 2 }
sub even (Int $n --> Bool) { $n !%% 2 }
 
sub ethiopicmult (Int $a is copy, Int $b is copy --> Int) {
Anonymous user