Code Below:


class floyd
{
    public static void main()
    {
        int i,j,k=1;
        for (i=1;i<=5;i++)
        {
            for (j=1;j<=i;j++)
            {
                System.out.print(k+"\t");
                k++;
            }
            System.out.println();
        }
    }
}