in ,

Cobol is literally just English

Cobol is literally just English | program-memes, data-memes, c-memes, ide-memes, div-memes, comment-memes | ProgrammerHumor.io
program-memes, data-memes, c-memes, ide-memes, div-memes, comment-memes | ProgrammerHumor.io

Content

2 3 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 31 IDENTIFICATION DIVISION. PROGRAM-ID. ADDNUMBERS. DATA DIVISION. FILE SECTION. WORKING- STORAGE SECTION. 01 FIRST-NUMBER 01 SECOND-NUMBER PICTURE IS 99. PICTURE IS 99. 01 RESULT PICTURE IS 9999. PROCEDURE DIVISION. MAIN-PROCEDURE. DISPLAY "Here is the first Number " MOVE 8 TO FIRST-NUMBER DISPLAY FIRST-NUMBER DISPLAY "Let’s add 20 to that number." ADD 20 TO FIRST-NUMBER DISPLAY FIRST-NUMBER DISPLAY "Create a second variable" MOVE 30 TO SECOND-NUMBER DISPLAY SECOND-NUMBER COMMENT: COMPUTE THE TWO NUMBER AND PLACE INTO RESULT COMPUTE RESULT – FIRST-NUMBER SECOND-NUMBER. DISPLAY "The result is:" DISPLAY RESULT. STOP RUN. 30 END PROGRAM ADDNUMBERS.