Align columns: Difference between revisions

m
→‎{{header|REXX}}: changed two comments.
m (→‎{{header|REXX}}: added/changed comments and whitespace, adjusted width of titles.)
m (→‎{{header|REXX}}: changed two comments.)
Line 5,681:
do k=1 for cols; size=size+wid.k; end /*find the width of the biggest line. */
rows=r-1 /*adjust ROWS because of the DO loop.*/
do j=1 for 3; say; say /*show two blank lines for separatera separator. */
say center(word('left right center', j) "aligned", size+cols-1, "═") /*show title*/
do r=1 for rows; _= /*construct row by row. */
Line 5,744:
do k=1 for cols; size=size+wid.k; end /*find the width of the biggest line. */
rows=r-1 /*adjust ROWS because of the DO loop.*/
do j=1 for 3; say; say /*show two blank lines for separatera separator. */
say center(word('left right center', j) "aligned", size+cols+1, "═") /*show title*/