Floyd’s Triangle

Flyod’s Triangle :

Floyd’s triangle is like

1
2   3
4   5    6
7   8    9   10

ALGORITHM

    1. [INITIALISE] SET f=1
    2. INPUT no. of rows, n.
    3. for i=1 to n
      for j=1 to i
      PRINT value of j
      SET j=j+1
      [end of inner loop]
      [end of outer loop]

C SOURCE CODE:

Leave a Reply

Your email address will not be published. Required fields are marked *