Register Login

Squares of numbers from 1 TO 10, ABAP program

* 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

  • 03 Jul 2016 4:08 pm Guest

    how to write diamond shape prorgam in SAP ABAP