Difference between revisions of "Manuals/calci/FLOYDSTRIANGLE"

From ZCubes Wiki
Jump to navigation Jump to search
Line 15: Line 15:
 
==Examples==
 
==Examples==
 
*FLOYDSTRIANGLE(3,10)
 
*FLOYDSTRIANGLE(3,10)
1
+
  1
2 3
+
  2 3
4 5 6
+
  4 5 6
 
*FLOYDSTRIANGLE(4,7)
 
*FLOYDSTRIANGLE(4,7)
1
+
  1
2 3
+
  2 3
4 5 6
+
  4 5 6
7
+
  7
  
 
==See Also==
 
==See Also==

Revision as of 16:11, 21 November 2016

FLOYDSTRIANGLE (NumberOfRows,Upto)


  • is the number of rows to get Floyds Triangle.
  • is the upper range in the Floyds Triangle.

Description

  • This function returns values of Floyds Triangle.
  • This Triangle lists the natural numbers in a right angled triangle which satisfies the following properties:
  • 1. The first row is 1.
  • 2.Successive rows start towards the left with the next number followed by successive naturals listing one more number than the line above.
  • The first few lines of a Floyd triangle looks like this:
  1
  2 3 
  4 5 6...........

Examples

  • FLOYDSTRIANGLE(3,10)
 1
 2 3
 4 5 6
  • FLOYDSTRIANGLE(4,7)
  1
  2 3
  4 5 6
  7

See Also

References

Floyds Triangle