C Program to Print the Floyds triangle of numbers:
This program is print the floyds triangle using c. in which we take an input from user and display the number of line which we take input from user.
For Example:
1
2 3
4 5 6
7 8 9 10
ALGORITHM:-

step 1 : Start
step 2 : Enter the number of lines
step 3 : Calculate the floyd`s triangle
step 4 : Stop

PROGRAM CODE:-

#include<stdio.h>
#include<conio.h>

void main()
{
    int i,j,n,k=1;
    printf("Enter the Number of line: ");
    scanf("%d",&n);

    printf("FLOYD'S Triangle\n\n");
    for(i=1; i<=n; i++)
    {
        for(j=1; j<=i; j++, k++)
        {
            printf(" %d", k);
        }
        printf("\n");
    }
    getch();
}

OUTPUT:-

Enter the number of lines: 5

Floyd`s triangle
1
2  3
4  5  6
7  8  9  10
11 12 13 15 15


C Program to print the Floyd`s triangle
How to print the floyd`s triangle using c
Floyd`s triangle of number using c