Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/Integer-sequence/COBOL/integer-sequence.cobol
Normal file
16
Task/Integer-sequence/COBOL/integer-sequence.cobol
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