86. C Program to Print Floyd Triangle.
How does this program work?
- This Program is used to print the floyd triangle using c program.
Here is the code
#include <stdio.h>
int main(void)
{
int i,j,k;
k=1;
for(i=1;i<5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",k++);
printf(" ");
}
printf("\n");
}
return 0;
}