Talk:Pascal's triangle: Difference between revisions

(→‎Right Output Format?: added a comment about indentation for the triangle shape. -- ~~~~)
Line 36:
z -= 1</lang>Likely, there are more elegant formatting methods. This is to my ability. --[[User:Jnever1|Jnever1]] 04:35, 14 March 2012 (UTC)
 
::--- Easy or not, it's what makes Pascal's triangle a ... well, a triangle. Having the output in a triangle is what shows (easlily) what the relationship is between any number and the two above it, assuming that the "above" numbers in the line are formatted properly. Next thing you know, Latin squares will be acceptable as all the numbers on one line. It should be an easy thing to insert some blanks before/between the numbers. -- [[User:Gerard Schildberger|Gerard Schildberger]] 19:07, 14 May 2012 (UTC)
 
::FWIW my two cents on this is that it's easy enough to tilt your head left 45&deg; :). It's not stated in the problem text, but I saw this task as an exercise in creating the triangle itself, and the extra code to format it properly can obfuscate the more important underlying logic. I agree it's not hard, but even so, for a beginning programmer to sift through which logic applies to which issue can be difficult. I think a separate formatting task would be a great way to address this. --[[User:MikeLorenz|Mike Lorenz]] 13:28, 3 November 2012 (UTC)
 
== J Explanation ==