Hello World!
Part of the First Programs section of Coddy's COBOL Programming journey. Lesson 2 of 19.
DISPLAY prints what follows it, then ends the line. Text in double quotes is a literal: COBOL prints it as written.
DISPLAY "Hello World!".Each statement here ends with a period. Two DISPLAY statements print two lines:
DISPLAY "Line one".
DISPLAY "Line two".STOP RUN. ends the program. It is the last statement in the programs of this section.
Challenge
EasyPrint Hello World! with a DISPLAY statement, on the line above STOP RUN.
Try it yourself
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO.
PROCEDURE DIVISION.
*> Print Hello World! here
STOP RUN.