User input/Text: Difference between revisions
→{{header|BabyCobol}}: conform to the task definition
m (→{{header|Wren}}: Changed to Wren S/H) |
Grammarware (talk | contribs) (→{{header|BabyCobol}}: conform to the task definition) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 488:
Disp "That isn't 7500"
End</syntaxhighlight>
=={{header|BabyCobol}}==
<syntaxhighlight lang="cobol">
* NB: whitespace insignificance and case insensitivity
* are used in the field name.
IDENTIFICATION DIVISION.
PROGRAM-ID. USER INPUT.
DATA DIVISION.
01 HUNDRED CHAR STRING PICTURE IS X(100).
01 FIVE DIGIT NUMBER PICTURE IS 9(5).
PROCEDURE DIVISION.
DISPLAY "Enter a string of appropriate length: " WITH NO ADVANCING
ACCEPT HundredChar String.
DISPLAY "Enter a number (preferably 75000): " WITH NO ADVANCING
ACCEPT FiveDigit Number.
</syntaxhighlight>
=={{header|BASIC}}==
|