Anonymous user
Changeable words: Difference between revisions
m
→{{header|REXX}}: elided a duplicate filter for the words, changed whitespace, moved an assignment statement.
(Added Java solution) |
m (→{{header|REXX}}: elided a duplicate filter for the words, changed whitespace, moved an assignment statement.) |
||
Line 873:
say copies('─', 30) # "words ("wc 'usable words) in the dictionary file: ' iFID
finds= 0 /*count of the changeable words found.*/▼
abc= 'abcdefghijklmnopqrstuvwxyz'; upper abc /*alphabet ordered by frequency of use.*/
Labc= length(abc) /*the length of the alphabet to be used*/
▲finds= 0 /*count of the changeable words found.*/
do j=1 for wc; L= length($.j) /*process all the words that were found*/
x= $.j; upper x /*get an uppercased version of the word*/
pad= left('', 9) /*PAD: used for indenting the output.*/
end
say copies('─', 30) finds ' changeable words found with a minimum length of ' minL</lang>
{{out|output|text= when using the default inputs:}}
|