Anonymous user
Pangram checker: Difference between revisions
m
→{{header|REXX}}: changed program to show all missing letters (if any), as suggested by Walter Pachl.
m (→{{header|REXX}}: used a template for the output.) |
m (→{{header|REXX}}: changed program to show all missing letters (if any), as suggested by Walter Pachl.) |
||
Line 2,097:
@abc= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' /*a list of all (Latin) capital letters*/
do forever
say
say '──────── Please enter a pangramic sentence (or a blank to quit):'
say
pull y /*this also uppercases the Y variable.*/
if y='' then leave /*if nothing entered, then we're done.*/
absent= space( translate( @abc, , y), 0) /*obtain a list of any absent letters. */
if ?==0 then say '──────── Sentence is a pangram.'▼
else say "──────── Sentence isn't a pangram, missing:" substr(@abc, ?, 1)▼
say
end /*forever*/
Line 2,113 ⟶ 2,117:
The quick brown fox jumped over the lazy dog. ◄■■■■■■■■■■ user input.
──────── Sentence isn't a pangram, missing: S
|