REPORT z_abap101_043.
PARAMETERS p_num_a TYPE i.
PARAMETERS p_num_b LIKE p_num_a DEFAULT 2.
DATA v_result TYPE f.
START-OF-SELECTION.
p_num_a = 5.
v_result = p_num_a + p_num_b.
WRITE: 'Addition:', v_result EXPONENT 0 .
NEW-LINE.
v_result = p_num_a - p_num_b.
WRITE: 'Subtraction:', v_result.
NEW-LINE.
v_result = p_num_a * p_num_b.
WRITE: 'Multiplication:', v_result.
NEW-LINE.
v_result = p_num_a / p_num_b.
WRITE: 'Division:', v_result.
NEW-LINE.
v_result = p_num_a ** p_num_b.
WRITE: 'Power:', v_result.
Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Consultant
Contact : serkurumsal@yandex.com
Social Plugin