Introduction to COBOL
First step into COBOL, the legendary language of banking: program divisions (DIVISION) and DISPLAY.
Simple enough for a 5-year-old to understand
Program structure (DIVISIONs)
A COBOL program is divided into divisions: IDENTIFICATION (program name), PROCEDURE (commands). Every statement ends with a period (.).
Fixed format is important: DIVISION lines start with ~7 spaces, commands are indented further.
IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. PROCEDURE DIVISION. DISPLAY "Hello World". STOP RUN.🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (2 left)
🎯 Expected output: Hello World