Rhonda numbers: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (typo) |
Thundergnat (talk | contribs) 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) |
put $b.fmt("In base %2d: ") ~ @rhonda».base($b)».fmt("%{$ch}s").join: ', '; |
||
}</lang> |
}</lang> |
||
{{out}} |
{{out}} |