Sabtu, 01 Oktober 2011

Contoh Program COBOL part1

IDENTIFICATION DIVISION.
AUTHOR. ALOW_INTAN.
ENVIRONMENT DIVISION.
DATA DIVISION.
01 NAMA PIC A(20).
01 KELAS PIC B(5).
PROCEDURE DIVISION.
MULAI.
DISPLAY "NAMA :".
ACCEPT NAMA.
DISPLAY "KELAS :".
ACCEPT KELAS.
SCREEN SECTION.
01 ACCEPT NAMA.
01 ACCEPT KELAS.
SELESAI.
STOP RUN.

Tidak ada komentar:

Posting Komentar