Anonymous user
Distinct palindromes within decimal numbers: Difference between revisions
Distinct palindromes within decimal numbers (view source)
Revision as of 00:16, 7 April 2021
, 3 years ago→{{header|REXX}}: allowed the use of numbers/words of any length, not just the width of last entry.
(→{{header|REXX}}: added the computer programming language REXX.) |
m (→{{header|REXX}}: allowed the use of numbers/words of any length, not just the width of last entry.) |
||
Line 353:
say
do j=1 for words($$); z= word($$, j)
#= Dpal(z, mL); w= max(w, length(z)
_= left(':', #>0); @has= ' has '; @of='of length'
say right(z, w) @has # " palindrome"s(#,,' ') @of mL "or more"_ space($)
|