Rhonda numbers: Difference between revisions

Content added Content deleted
m (typo)
m (→‎{{header|Raku}}: style tweak)
Line 62: Line 62:
my $ch = @rhonda[*-1].chars max @rhonda[*-1].base($b).chars;
my $ch = @rhonda[*-1].chars max @rhonda[*-1].base($b).chars;
put "In base 10: " ~ @rhonda».fmt("%{$ch}s").join: ', ';
put "In base 10: " ~ @rhonda».fmt("%{$ch}s").join: ', ';
put $b.fmt("In base %2d: ") ~ @rhonda».base($b)>>.fmt("%{$ch}s").join: ', ';
put $b.fmt("In base %2d: ") ~ @rhonda».base($b)».fmt("%{$ch}s").join: ', ';
}</lang>
}</lang>
{{out}}
{{out}}