Register Login

Accepting two numbers from user and swap values, ABAP program

Updated May 18, 2018

* Accept two numbers from user and swap values.

REPORT  yswap2numbers_prathyusha                .
DATA:n1 TYPE i,
     N2 TYPE I,
     RES TYPE I.

N1 = 100.
N2 = 50.
N1 = N1 + N2.
N2 = N1 - N2.
N1 = N1 - N2.
WRITE: N1 , N2.


×