tasks a-s

This commit is contained in:
Ingy döt Net 2013-04-10 23:57:08 -07:00
parent 47bf37c096
commit b83f433714
12433 changed files with 156208 additions and 123 deletions

View file

@ -0,0 +1,16 @@
/*REXX program to check if an entered string (sentence) is a pangram. */
abc='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
do forever /*keep prompting until a null or blank(s). */
say; say ' Please enter a pangramic sentence:'; say
pull y /*this also uppercases the Y variable. */
if y='' then leave /*if nothing entered, then we're done. */
?=verify(abc,y) /*see if all (Latin) letters are present. */
if ?==0 then say 'Sentence is a pangram.'
else say "Sentence isn't a pangram, missing:" substr(abc,?,1)
say
end /*forever*/
say ' PANGRAM program ended. '
/*stick a fork in it, we're done.*/