Difference between revisions of "Manuals/calci/FLOYDSTRIANGLE"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "==FLOYDS==")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==FLOYDS==
+
<div style="font-size:30px">'''FLOYDSTRIANGLE (NumberOfRows,Upto)'''</div><br/>
 +
*<math>NumberOfRows</math> is the number of rows to get Floyds Triangle.
 +
*<math>Upto</math> 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
 +
 
 +
==Related Videos==
 +
{{#ev:youtube|v=JhYtpmDNuCM&t=208s|280|center|Floyds Triangle}}
 +
 
 +
==See Also==
 +
*[[Manuals/calci/PASCALTRIANGLE  | PASCALTRIANGLE ]]
 +
 
 +
==References==
 +
[https://en.wikipedia.org/wiki/Floyd's_triangle Floyds Triangle]
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 15:25, 28 November 2018

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

Related Videos

Floyds Triangle

See Also

References

Floyds Triangle