Anonymous user
User input/Text: Difference between revisions
m
→{{header|REXX}}: added more wording to the REXX section header, added/changed comments and whitespace.
(Fixed to most recent version) |
m (→{{header|REXX}}: added more wording to the REXX section header, added/changed comments and whitespace.) |
||
Line 1,421:
=={{header|REXX}}==
Note:
:* '''7.5E+0004'''
<lang rexx>/*REXX pgm prompts and gets a string and also the # 75000 from terminal.*/▼
:* '''75000.'''
:* '''750000e-01'''
;* '''000075000.0000'''
/* [↑] string can be any length.*/▼
:* ''' 75000 ''' (with leading and/or trailing blanks)
do until userNumber=75000 /*repeat this loop until correct.*/▼
:* and others
say /*display blank line to terminal.*/▼
say 'Please enter the number 75000' /*display a nice prompt message. */▼
If the intent was to have the user enter the string exactly as '''75000''',
parse pull userNumber /*obtain the user text from term.*/▼
<br>then the REXX '''do''' statement should be replaced with:
end /*until ··· */ /*check if the response is legit.*/▼
do until userNumber==75000
/*stick a fork in it, we're done.*/</lang>▼
▲<lang rexx>/*REXX
say 'Please enter a string:' /*issue a prompt message to the term. */
parse pull userString /*the (char) string can be any length. */
▲ say /*display a blank line to the terminal.*/
▲ /*stick a fork in it, we're all done. */</lang>
=={{header|Ring}}==
|