ad

Thursday, April 10, 2025

C Program To Print Floyd's Triangle Pattern

C Program To Print Floyd's Triangle Pattern

C Program To Print Floyd's Triangle Pattern

Example 

#include<stdio.h>
int main()
{

int row,i,j,number=1;
clrscr();
printf("enter the number");
scanf("%D",&row);
for(i=1;i<=row;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",number);
++number;
}
printf("\n");
}
getch();
return 0;
}

C Program To Print Floyd's Triangle Pattern

 Program Output :- 

c program print floyd program


Related Post :-

c program to print full pyramid star

c program to print pascals triangle

c program to print inverted half

No comments:

Post a Comment