Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
IDENTIFICATION DIVISION.
PROGRAM-ID. ADD01.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 FIRST-NUMBER PICTURE IS 99999.
01 SECOND-NUMBER PICTURE IS 99999.
01 THE-RESULT PICTURE IS 99999.
PROCEDURE DIVISION.
PROGRAM-BEGIN.
DISPLAY "===== ADDITION OF TWO NUMBERS =====".
DISPLAY "Enter the first number :".
ACCEPT FIRST-NUMBER.
DISPLAY "Enter the second number :".
ACCEPT SECOND-NUMBER.
ADD FIRST-NUMBER, SECOND-NUMBER GIVING THE-RESULT.
DISPLAY "The result is : ".
DISPLAY THE-RESULT.
STOP RUN.
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more