User input/Text: Difference between revisions

→‎{{header|BabyCobol}}: conform to the task definition
(→‎{{header|BabyCobol}}: remove stray space)
(→‎{{header|BabyCobol}}: conform to the task definition)
Line 496:
PROGRAM-ID. USER INPUT.
DATA DIVISION.
01 THREEHUNDRED DIGITCHAR NUMBERSTRING PICTURE IS 9X(3100).
01 FIVE DIGIT NUMBER PICTURE IS 9(5).
PROCEDURE DIVISION.
DISPLAY "Enter a numberstring of appropriate length: " WITH NO ADVANCING
ACCEPT ThreeDigitHundredChar NumberString.
DISPLAY "Enter a number (preferably 75000): " WITH NO ADVANCING
ACCEPT FiveDigit Number.
</syntaxhighlight>
 
18

edits