Friday, 27 May 2016

Alignments




  1. RIGHT-JUSTIFIED
  2. CENTERED
  3. LEFT-JUSTIFIED

  • By default always characters are left justified and numbers are right justified.

Ex : Without Alignment.


Source Code




PARAMETERS num TYPE i,
             name(10TYPE c.

WRITE num / name .



Save ->check -> Activate.

Input




Output



----------------------------------------------------



Ex : 2 . With alignment.


Source Code :



PARAMETERS num TYPE i,
             name(10TYPE c.

WRITE num LEFT-JUSTIFIED / name  RIGHT-JUSTIFIED.





Input




Output




--------------------------------------------------------------------------------------------





No comments:

Post a Comment