Cobol program ADD two numbers

Program to ADD two numbers

IDENTIFICATION DIVISION.
PROGRAM-ID. PGM9.
AUTHOR. Indus Computer Services.
*ADD TWO NUMBERS
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 A PIC 9(2) VALUE 12.
77 B PIC 9(2) VALUE 13.
PROCEDURE DIVISION.

ADD A TO B.
DISPLAY 'B = A + B ' B.
STOP RUN.

0 comments:

Post a Comment