Monday, 30 May 2016

While .. Endwhile

While .. Endwhile


Ex :

Steps :

  1. Go to transaction code SE38.
  2. Enter the program name Z or Y<program name>
  3. Select attribute type as Executable program.
  4. Click on Save.

Source Code


 DATA: COUNT  TYPE I.

PARAMETERS : NUM TYPE I.

COUNT  = 1.

WHILE COUNT  <= NUM .
WRITE : / COUNT .
COUNT = COUNT + 1.
ENDWHILE.



Input



Output



No comments:

Post a Comment