Floyd's triangle: Difference between revisions

m
→‎Version 2: corrected a typo (or wrong word choice) in a program comment.
(→‎{{header|REXX}}: changed/added comments and whitespace, changed indentations, made other cosmetic changes.)
m (→‎Version 2: corrected a typo (or wrong word choice) in a program comment.)
Line 1,806:
/*REXX program constructs & displays Floyd's triangle for any number of rows.*/
parse arg numRows .
if numRows == '' then numRows = 1 -- assume 1 row isif not given
maxVal = numRows * (numRows + 1) % 2 -- calculate the max value.
say 'displaying a' numRows "row Floyd's triangle:"