Talk:Floyd's triangle: Difference between revisions

→‎Output: Can be done
(→‎Output: comment on the task's 2nd requirement (alignment of numbers and only one blank between numbers on a line). -- ~~~~)
(→‎Output: Can be done)
Line 18:
 
::: The last requirement (2nd requirement) --- ''that only one space separates numbers of the last row'' --- this is an incorrect (impossible) requirement as the last line may have different width (length) numbers and some may have one blank, others will have two blanks, and that would preclude the numbers lining up as shown in the example. Case in point would be for a four or fifteen-row Floyd's triangle. If this assumption isn't correct, then the author has to change line four of the example to match their own requirement. For now, I'm programming the 2nd REXX version as it is shown in the example (''The first few lines of a Floyd triangle looks like this''), and that's what the programming example does (and displays), and what almost all examples have shown. -- [[User:Gerard Schildberger|Gerard Schildberger]] 03:33, 17 July 2012 (UTC)
 
::::Hi Gerard,
::::* First arrange that the columns are of such a width that all the numbers of the last row are separated by one space only.
::::* Then ensure that each column of numbers is packed to the right of its column width.
:::: Et voilà! --[[User:Paddy3118|Paddy3118]] 06:58, 17 July 2012 (UTC)
Anonymous user