Professional Documents
Culture Documents
ZP12
ZP12
ZP12
START-OF-SELECTION.
if P_r1 = 'X'.
v_z = P_X + P_Y.
write : /'SUM IS ',v_z LEFT-JUSTIFIED.
ELSEIF P_r2 = 'X'.
v_z = P_X - P_Y.
if v_z >= 0.
write :/'Difference is ',v_z LEFT-JUSTIFIED.
else.
write :/'Difference is -' NO-GAP,v_z LEFT-JUSTIFIED no-SIGN.
endif.
ELSEIF P_r3 = 'X'.
v_z = P_X * P_Y.
write :/'Product is ',v_z LEFT-JUSTIFIED.
ELSEIF P_r4 = 'X'.
v_z = P_X / P_Y.
write :/'Division is ',v_z LEFT-JUSTIFIED.
else.
write :/'None selected....'.
ENDIF.
initialization.
lb1 = 'Enter First Number'.
lb2 = 'Enter Second Number'.
t1 = 'Enter Input Values'.
t2 = 'Airthmetic Operation'.