Online Tutorials & Training Materials | STechies.com
Register Login

Accepting two numbers from user and swap values, ABAP program

|| || 0

Accepting two numbers from user and swap values, ABAP program
Stechies

* 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.