Floyd's Triangle is an right angled triangular array of natural numbers.
It filled the rows of the triangle with consecutive numbers as it starts with 1 in the top left corner
The code for this is below...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Postslush
{
class Program
{
static void Main(string[] args)
{
int i, j, k = 1;
Console.WriteLine(" ***** Floyd's Triangle -Numeric Mode **** Simple demo by PostSlush ");
for (i = 1; i <= 13; i++)
{
for (j = 1; j < i + 1; j++)
{
Console.Write(k++ + " ");
}
Console.Write("\n");
}
Console.ReadLine();
}
}
}
Output :
