PATTERN3
REPORT ZPATTERN3.
DATA:
I TYPE i,
j TYPE i,
k TYPE i,
l TYPE i.
i = 1.
do 5 times.
do i times.
WRITE at j(1) sy-index.
j = j + 1.
ENDDO.
WRITE /.
i = i + 1.
j = 1.
ENDDO.
i = 4.
j = 5.
l = 5.
do 4 times.
do i times.
WRITE at j(1) l.
j = j - 1.
l = l - 1.
ENDDO.
WRITE /.
i = i - 1.
j = 5.
l = 5.
ENDDO.
DATA:
I TYPE i,
j TYPE i,
k TYPE i,
l TYPE i.
i = 1.
do 5 times.
do i times.
WRITE at j(1) sy-index.
j = j + 1.
ENDDO.
WRITE /.
i = i + 1.
j = 1.
ENDDO.
i = 4.
j = 5.
l = 5.
do 4 times.
do i times.
WRITE at j(1) l.
j = j - 1.
l = l - 1.
ENDDO.
WRITE /.
i = i - 1.
j = 5.
l = 5.
ENDDO.