Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
16
Task/Integer-sequence/COBOL/integer-sequence.cob
Normal file
16
Task/Integer-sequence/COBOL/integer-sequence.cob
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
IDENTIFICATION DIVISION.
|
||||
PROGRAM-ID. Int-Sequence.
|
||||
|
||||
DATA DIVISION.
|
||||
WORKING-STORAGE SECTION.
|
||||
* *> 36 digits is the largest size a numeric field can have.
|
||||
01 I PIC 9(36).
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
* *> Display numbers until I overflows.
|
||||
PERFORM VARYING I FROM 1 BY 1 UNTIL I = 0
|
||||
DISPLAY I
|
||||
END-PERFORM
|
||||
|
||||
GOBACK
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue