Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Loops-Do-while/COBOL/loops-do-while.cobol
Normal file
15
Task/Loops-Do-while/COBOL/loops-do-while.cobol
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
IDENTIFICATION DIVISION.
|
||||
PROGRAM-ID. loop-do-while.
|
||||
|
||||
DATA DIVISION.
|
||||
WORKING-STORAGE SECTION.
|
||||
01 i PIC 99 VALUE 0.
|
||||
|
||||
PROCEDURE DIVISION.
|
||||
PERFORM WITH TEST AFTER UNTIL FUNCTION MOD(i, 6) = 0
|
||||
ADD 1 TO i
|
||||
DISPLAY i
|
||||
END-PERFORM
|
||||
|
||||
GOBACK
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue