hi could any one plz help me .thanks in advance
how to enter the values at runtime in cobol/400.
i have written some code but not getting the exact output.
PROCEDURE DIVISION
CALCULATIONPRESULT.
DISPLAY "ENTER NUM1 VALUE =".
ACCEPT NUM1.
DISPLAY "ENTER NUM2 VALUE =".
ACCEPT NUM2.
COMPUTE RESULT = NUM1 * NUM2.
DISPLAY "RESULT = ", RESULT.
how to enter the values at runtime in cobol/400.
i have written some code but not getting the exact output.
PROCEDURE DIVISION
CALCULATIONPRESULT.
DISPLAY "ENTER NUM1 VALUE =".
ACCEPT NUM1.
DISPLAY "ENTER NUM2 VALUE =".
ACCEPT NUM2.
COMPUTE RESULT = NUM1 * NUM2.
DISPLAY "RESULT = ", RESULT.
Comment