Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IDENTIFICATION DIVISION.
- PROGRAM-ID. ANGGI ALBERTO.
- ENVIRONMENT DIVISION.
- DATA DIVISION.
- WORKING-STORAGE SECTION.
- 01 NAMA PIC X(30).
- 01 NPM PIC X(8)
- 01 KELAS PIC X(5).
- 01 LINGKARAN.
- 02 JARI PIC 99V99.
- 02 LLINGKARAN PIC 99999V99.
- 01 HASIL.
- 02 OHASIL PIC ZZZZZ.99.
- SCREEN SECTION.
- 01 HAPUS-LAYAR.
- 02 BLANK SCREEN.
- PROCEDURE DIVISION.
- MULAI.
- DISPLAY (2,3) "NAMA : ".
- ACCEPT NAMA.
- DISPLAY (3,3) "NPM : ".
- ACCEPT NPM.
- DISPLAY (4,3) "KELAS : ".
- ACCEPT KELAS.
- LINGKARAN.
- DISPLAY HAPUS-LAYAR.
- DISPLAY BDATA.
- DISPLAY (5,20) 'NAMA :', NAMA.
- DISPLAY (6,20) 'KELAS :', KELAS.
- DISPLAY (7,20) 'NPM :', NPM.
- DISPLAY (9, 10)'===MENGHITUNG LUAS LINGKARAN==='.
- DISPLAY (10, 13) 'JARI-JARI : '.
- ACCEPT JARI.
- COMPUTE LLINGKARAN = 3.14 * JARI * JARI.
- MOVE LLINGKARAN TO OHASIL.
- DISPLAY (13, 15) 'LUAS LINGKARAN = '.
- DISPLAY (13, 30) OHASIL.
- DISPLAY (20, 12) ' '.
- SELESAI.
- STOP RUN.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement