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.
Tutorialspoint

BenCobol1

IDENTIFICATION DIVISION.
PROGRAM-ID. EXAMPLE1.
AUTHOR. Ben. 
DATA DIVISION. WORKING-STORAGE SECTION. 
01 Num1      PIC 9 VALUE ZEROS. 
01 Num2       PIC 9 VALUE ZEROS.  
01 Result   PIC 99 VALUE ZEROS. 
PROCEDURE DIVISION.
CalculateResult. 
    ACCEPT Num1.
    ACCEPT Num2.
    MULTIPLY Num1 BY Num2 GIVING result. DISPLAY "result is = ", Result. 
DISPLAY "We did it".
STOP RUN.

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.