Monday 29 May 2023

SAP program to add two numbers

 


datav1 type char10.
datav2 type char10.
datav_add type char10.
datav_sub type char10.
datav_mul type char10.
datav_div type char10.


v1 10.
v2 5.

v_add v1 + v2.

write/'addition'v_add.

v_sub v1 v2.

write/'substraction'v_sub.

v_mul v1 * v2.

write/'Multiplication'v_mul.

v_div v1 / v2.

write/'Division'v_div.

No comments:

Post a Comment