* ABAP PROGRAM SHOWING SQUARES OF NUMBERS FROM 1 TO 10
REPORT YSQUARES_PRATHYUSHA .
DATA:A TYPE i VALUE 1,
B TYPE I VALUE 10,
C TYPE I VALUE 1,
RES TYPE I.
DO B TIMES.
RES = C * C.
WRITE: / C, RES.
C = C + 1.
ENDDO.
Updated May 18, 2018
* ABAP PROGRAM SHOWING SQUARES OF NUMBERS FROM 1 TO 10
REPORT YSQUARES_PRATHYUSHA .
DATA:A TYPE i VALUE 1,
B TYPE I VALUE 10,
C TYPE I VALUE 1,
RES TYPE I.
DO B TIMES.
RES = C * C.
WRITE: / C, RES.
C = C + 1.
ENDDO.
Comments