User input/Text: Difference between revisions
Content added Content deleted
Grammarware (talk | contribs) (→{{header|BabyCobol}}: remove stray space) |
Grammarware (talk | contribs) (→{{header|BabyCobol}}: conform to the task definition) |
||
Line 496: | Line 496: | ||
PROGRAM-ID. USER INPUT. |
PROGRAM-ID. USER INPUT. |
||
DATA DIVISION. |
DATA DIVISION. |
||
01 |
01 HUNDRED CHAR STRING PICTURE IS X(100). |
||
01 FIVE DIGIT NUMBER PICTURE IS 9(5). |
|||
PROCEDURE DIVISION. |
PROCEDURE DIVISION. |
||
DISPLAY "Enter a |
DISPLAY "Enter a string of appropriate length: " WITH NO ADVANCING |
||
ACCEPT |
ACCEPT HundredChar String. |
||
DISPLAY "Enter a number (preferably 75000): " WITH NO ADVANCING |
|||
ACCEPT FiveDigit Number. |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||